From c9996f4942c2ab8fdb66d5fe89d5b8e4de56e939 Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Thu, 16 May 2024 09:59:16 -0700 Subject: [PATCH] MacOS 14.5 curl doesn't like empty arguments --- src/gam-install.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/gam-install.sh b/src/gam-install.sh index 94d7c6c2..8d9382f1 100755 --- a/src/gam-install.sh +++ b/src/gam-install.sh @@ -161,14 +161,15 @@ else fi if [ -z ${GHCLIENT+x} ]; then - check_type="unauthenticated" -else + check_type="unauthenticated"e + echo_yellow "Checking GitHub URL $release_url for $gamversion GAM release ($check_type)..." + release_json=$(curl -s "$release_url" 2>&1 /dev/null) +lse check_type="authenticated" + echo_yellow "Checking GitHub URL $release_url for $gamversion GAM release ($check_type)..." + release_json=$(curl -s "$GHCLIENT" "$release_url" 2>&1 /dev/null) fi -echo_yellow "Checking GitHub URL $release_url for $gamversion GAM release ($check_type)..." -release_json=$(curl -s "$GHCLIENT" "$release_url" 2>&1 /dev/null) - echo_yellow "Getting file and download URL..." # Python is sadly the nearest to universal way to safely handle JSON with Bash # At least this code should be compatible with just about any Python version ever