Fix ubuntu install (#46)

The filename for the deb is versioned like '0.6.4', not 'v0.6.4'.
This commit is contained in:
Ian Smith 2021-05-07 11:06:43 -07:00 committed by GitHub
parent cbb472bba6
commit e2edcbf994
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,7 +50,7 @@ __atuin_install_arch(){
__atuin_install_ubuntu(){ __atuin_install_ubuntu(){
echo "Ubuntu detected" echo "Ubuntu detected"
# TODO: select correct AARCH too # TODO: select correct AARCH too
ARTIFACT_URL="https://github.com/ellie/atuin/releases/download/$LATEST_VERSION/atuin_${LATEST_VERSION}_amd64.deb" ARTIFACT_URL="https://github.com/ellie/atuin/releases/download/$LATEST_VERSION/atuin_${LATEST_VERSION//v/}_amd64.deb"
TEMP_DEB="$(mktemp)" && TEMP_DEB="$(mktemp)" &&
wget -O "$TEMP_DEB" $ARTIFACT_URL wget -O "$TEMP_DEB" $ARTIFACT_URL