From ac1d48128651c5464b1fae387995fb5d2f5455ef Mon Sep 17 00:00:00 2001 From: stormdragon2976 Date: Sat, 21 Jan 2023 01:16:26 -0500 Subject: [PATCH] Switch from wget to curl for downloads. this removes a dependency, and theoretically should not lose any functionality. It is experimental, however, so please watch for bugs. --- linux-game-manager.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/linux-game-manager.sh b/linux-game-manager.sh index 2eee646..ad79fea 100755 --- a/linux-game-manager.sh +++ b/linux-game-manager.sh @@ -192,7 +192,7 @@ download() { fi # Skip if the item is in cache. test -e "${cache}/${dest}" && continue - if ! wget -4 -O "${cache}/${dest}" "${i}" ; then + if ! curl -4 --output "${cache}/${dest}" "${i}" ; then echo "Could not download \"$i\"..." exit 1 fi @@ -473,7 +473,6 @@ requiredPackages=( "curl" "dialog" "unzip" - "wget" ) for i in "${requiredPackages[@]}" ; do if ! command -v $i > /dev/null 2>&1 ; then