mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 12:21:35 +00:00
MacOS 14.5 curl doesn't like empty arguments
This commit is contained in:
@@ -161,13 +161,14 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z ${GHCLIENT+x} ]; then
|
if [ -z ${GHCLIENT+x} ]; then
|
||||||
check_type="unauthenticated"
|
check_type="unauthenticated"e
|
||||||
else
|
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"
|
check_type="authenticated"
|
||||||
fi
|
|
||||||
|
|
||||||
echo_yellow "Checking GitHub URL $release_url for $gamversion GAM release ($check_type)..."
|
echo_yellow "Checking GitHub URL $release_url for $gamversion GAM release ($check_type)..."
|
||||||
release_json=$(curl -s "$GHCLIENT" "$release_url" 2>&1 /dev/null)
|
release_json=$(curl -s "$GHCLIENT" "$release_url" 2>&1 /dev/null)
|
||||||
|
fi
|
||||||
|
|
||||||
echo_yellow "Getting file and download URL..."
|
echo_yellow "Getting file and download URL..."
|
||||||
# Python is sadly the nearest to universal way to safely handle JSON with Bash
|
# Python is sadly the nearest to universal way to safely handle JSON with Bash
|
||||||
|
|||||||
Reference in New Issue
Block a user