aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryson Steck <steck.bryson@gmail.com>2022-06-05 01:53:51 -0600
committerBryson Steck <steck.bryson@gmail.com>2022-06-05 01:53:51 -0600
commit20c4552d9516a16684cc53afae5ef02ff4accaf8 (patch)
tree13273c14bd9af208f86a7022120b1e9b8f514b53
parent28933bcce9aba7125569ea3bd6a1eb48d4988afe (diff)
downloadriibalanced-patcher-20c4552d9516a16684cc53afae5ef02ff4accaf8.tar
riibalanced-patcher-20c4552d9516a16684cc53afae5ef02ff4accaf8.tar.gz
riibalanced-patcher-20c4552d9516a16684cc53afae5ef02ff4accaf8.tar.bz2
add powershell command for extract
-rwxr-xr-xpatch_iso.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/patch_iso.sh b/patch_iso.sh
index cf5a296..3f07958 100755
--- a/patch_iso.sh
+++ b/patch_iso.sh
@@ -72,9 +72,9 @@ if [[ ERROR -ne 0 ]]; then
curl https://wit.wiimm.de/download/wit-v3.04a-r8427-mac.tar.gz > wit.tar.gz
elif [[ "$OSTYPE" == "cygwin" ]]; then
if [[ $arch == x86_64* ]]; then
- curl https://wit.wiimm.de/download/wit-v3.04a-r8427-cygwin64.zip > wit.tar.gz
+ curl https://wit.wiimm.de/download/wit-v3.04a-r8427-cygwin64.zip > wit.zip
elif [[ $arch == i*86 ]]; then
- curl https://wit.wiimm.de/download/wit-v3.04a-r8427-cygwin32.zip > wit.tar.gz
+ curl https://wit.wiimm.de/download/wit-v3.04a-r8427-cygwin32.zip > wit.zip
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
@@ -83,9 +83,9 @@ if [[ ERROR -ne 0 ]]; then
echo "Riibalanced Patcher: Your operating system ($OSTYPE) 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/"
exit 2;
fi
- tar -xvf wit.tar.gz
- cd wit-v*/
if [[ $CYGWIN ]]; then
+ powershell -command "Expand-Archive -Force .\wit.zip ."
+ cd wit-v*/
if [[ $(id -u) == 197108 ]]; then
./install.sh
else
@@ -93,6 +93,8 @@ if [[ ERROR -ne 0 ]]; then
exit 9
fi
else
+ tar -xvf wit.tar.gz
+ cd wit-v*/
if [[ $(id -u) == 0 ]]; then
./install.sh
else