aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryson Steck <steck.bryson@gmail.com>2022-06-04 16:26:37 -0600
committerBryson Steck <steck.bryson@gmail.com>2022-06-04 16:26:37 -0600
commitaa73c77e0d8f134cb87ee0625f30bbc542388779 (patch)
tree1da33e8a931c9ebd2f24d7ac12506a73571873de
parente28ec48ddad72f47f95b2e9409037282575a91c9 (diff)
downloadriibalanced-patcher-aa73c77e0d8f134cb87ee0625f30bbc542388779.tar
riibalanced-patcher-aa73c77e0d8f134cb87ee0625f30bbc542388779.tar.gz
riibalanced-patcher-aa73c77e0d8f134cb87ee0625f30bbc542388779.tar.bz2
change from wget to curl
-rw-r--r--.gitignore1
-rwxr-xr-xpatch_iso.sh16
2 files changed, 11 insertions, 6 deletions
diff --git a/.gitignore b/.gitignore
index abafa29..fe52fb0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -16,3 +16,4 @@
# Other possible binaries that might be lurking
*.zip
*.7z
+*.tar.gz
diff --git a/patch_iso.sh b/patch_iso.sh
index 84cc287..b4863a8 100755
--- a/patch_iso.sh
+++ b/patch_iso.sh
@@ -29,13 +29,17 @@ fi
# check if correct programs are installed ----------------------------------------
-# wget ------
-type wget
+# curl ------
+type curl
ERROR="$?"
if [[ ERROR -ne 0 ]]; then
echo
- echo "You must install 'wget' in order for this script to work correctly. Please consult your system's package manager."
+ echo "You must install 'curl' in order for this script to work correctly."
+ if [[ "$OSTYPE" == "darwin"* ]]; then
+ echo "Try running 'xcode-select --install'."
+ else
+ echo "Please consult your system's package manager."
exit 0
fi
@@ -57,14 +61,14 @@ if [[ ERROR -ne 0 ]]; then
arch=$(uname -m)
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
if [[ $arch == x86_64* ]]; then
- wget https://wit.wiimm.de/download/wit-v3.04a-r8427-x86_64.tar.gz -O wit.tar.gz
+ curl https://wit.wiimm.de/download/wit-v3.04a-r8427-x86_64.tar.gz > wit.tar.gz
elif [[ $arch == i*86 ]]; then
- wget https://wit.wiimm.de/download/wit-v3.04a-r8427-i386.tar.gz -O wit.tar.gz
+ curl https://wit.wiimm.de/download/wit-v3.04a-r8427-i386.tar.gz > wit.tar.gz
else
echo "ERROR: Your system's architecture ($arch) does not support Wiimm's ISO Tools. Please refer to wit's website for more information on how to install the tools. https://wit.wiimm.de/"
fi
elif [[ "$OSTYPE" == "darwin"* ]]; then
- wget https://wit.wiimm.de/download/wit-v3.04a-r8427-mac.tar.gz -O wit.tar.gz
+ curl https://wit.wiimm.de/download/wit-v3.04a-r8427-mac.tar.gz > wit.tar.gz
elif [[ "$OSTYPE" == "cygwin" ]]; then
break
else