🐛 fix script

This commit is contained in:
Moritz Böhme 2021-12-30 11:15:08 +01:00
parent 6eb6183e79
commit 9884134eb8

View file

@ -100,10 +100,10 @@ pkgs.writeShellApplication {
fi
}
if [[ $# -eq 0 ]]; then
if [[ "$#" -eq 0 ]]; then
version="$(curl -s $latesturi | grep -E -m1 "tag_name" | cut -d \" -f4)"
url=$(curl -s $latesturi | grep -E -m1 "browser_download_url.*.tar.gz" | cut -d \" -f4)
sha512url=$(curl -s $latesturi | grep -E -m1 "browser_download_url.*.sha512sum" | cut -d \" -f4)
url="$(curl -s $latesturi | grep -E -m1 "browser_download_url.*.tar.gz" | cut -d \" -f4)"
sha512url="$(curl -s $latesturi | grep -E -m1 "browser_download_url.*.sha512sum" | cut -d \" -f4)"
if [ -d "$dstpath"/Proton-"$version" ]; then
echo "Proton $version is the latest version and is already installed."
else