From 9884134eb871850c34c2b8190cdc0ad6feee0805 Mon Sep 17 00:00:00 2001 From: MoritzBoehme Date: Thu, 30 Dec 2021 11:15:08 +0100 Subject: [PATCH] :bug: fix script --- modules/cli/bin/protonge.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/cli/bin/protonge.nix b/modules/cli/bin/protonge.nix index f15076b..ce9bfed 100644 --- a/modules/cli/bin/protonge.nix +++ b/modules/cli/bin/protonge.nix @@ -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