From 20c4552d9516a16684cc53afae5ef02ff4accaf8 Mon Sep 17 00:00:00 2001 From: Bryson Steck Date: Sun, 5 Jun 2022 01:53:51 -0600 Subject: add powershell command for extract --- patch_iso.sh | 10 ++++++---- 1 file 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 -- cgit v1.2.3