diff --git a/cproton.sh b/cproton.sh index b27f774..d5cdf36 100755 --- a/cproton.sh +++ b/cproton.sh @@ -141,7 +141,7 @@ InstallationPrompt() { if [ -z "$parameter" ]; then version="$(curl -s $latesturi | grep -E -m1 "tag_name" | cut -d \" -f4)" - url=$(curl -s $latesturi | grep -E -m1 "browser_download_url.*Proton" | cut -d \" -f4) + url=$(curl -s $latesturi | grep -E -m1 "browser_download_url.*Proton.*tar.gz" | cut -d \" -f4) if [ -d "$dstpath"/Proton-"$version" ]; then echo "Proton $version is the latest version and is already installed." else diff --git a/updatePGEfast.sh b/updatePGEfast.sh index d1d7819..ea774d2 100644 --- a/updatePGEfast.sh +++ b/updatePGEfast.sh @@ -13,7 +13,7 @@ dstpath="$HOME/.steam/root/compatibilitytools.d" else echo "Proton $latestversion is the latest version and is not installed yet." echo "Installing Proton $latestverion" - url=$(curl -s $latesturi | egrep -m1 "browser_download_url.*Proton" | cut -d \" -f4) + url=$(curl -s $latesturi | egrep -m1 "browser_download_url.*Proton.*tar.gz" | cut -d \" -f4) fi rsp="$(curl -sI "$url" | head -1)" @@ -27,4 +27,4 @@ echo "$rsp" | grep -q 302 || { echo [Info] Created "$dstpath" } -curl -sL "$url" | tar xfzv - -C "$dstpath" \ No newline at end of file +curl -sL "$url" | tar xfzv - -C "$dstpath"