From 5d3d1944a32407c0518200a09cb3cbdba858884c Mon Sep 17 00:00:00 2001 From: thekk1 Date: Mon, 3 Jul 2023 15:52:31 +0200 Subject: [PATCH 1/2] Update cproton.sh Filter for tar.gz to prevent downloading ".sha256sum" file instead. --- cproton.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 6ded5fafb9c3d197e919ae801852a305a2a43890 Mon Sep 17 00:00:00 2001 From: thekk1 Date: Mon, 3 Jul 2023 15:52:56 +0200 Subject: [PATCH 2/2] Update updatePGEfast.sh --- updatePGEfast.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"