Skip to content

Commit

Permalink
fix: specific version fetching in install script (spicetify#1578)
Browse files Browse the repository at this point in the history
  • Loading branch information
afonsojramos authored Apr 11, 2022
1 parent 7b45e7e commit b058b05
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,14 @@ tag=$(curl -LsH 'Accept: application/json' $shortcut/latest)
tag=${tag%\,\"update_url*}
tag=${tag##*tag_name\":\"}
tag=${tag%\"}
download_uri=$shortcut/download/$tag/spicetify-${tag#v}-$target.tar.gz

if [ $# -gt 0 ]; then
download_uri=$shortcut/download/v$1/spicetify-$1-$target.tar.gz
echo "FETCHING Version $1"
else
download_uri=$shortcut/download/$tag/spicetify-${tag#v}-$target.tar.gz
echo "FETCHING Latest Version"
fi

# locations
spicetify_install="$HOME/.spicetify"
Expand Down

0 comments on commit b058b05

Please sign in to comment.