add powershell command for extract
This commit is contained in:
parent
28933bcce9
commit
20c4552d95
1 changed files with 6 additions and 4 deletions
10
patch_iso.sh
10
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
|
curl https://wit.wiimm.de/download/wit-v3.04a-r8427-mac.tar.gz > wit.tar.gz
|
||||||
elif [[ "$OSTYPE" == "cygwin" ]]; then
|
elif [[ "$OSTYPE" == "cygwin" ]]; then
|
||||||
if [[ $arch == x86_64* ]]; 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
|
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
|
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/"
|
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
|
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/"
|
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;
|
exit 2;
|
||||||
fi
|
fi
|
||||||
tar -xvf wit.tar.gz
|
|
||||||
cd wit-v*/
|
|
||||||
if [[ $CYGWIN ]]; then
|
if [[ $CYGWIN ]]; then
|
||||||
|
powershell -command "Expand-Archive -Force .\wit.zip ."
|
||||||
|
cd wit-v*/
|
||||||
if [[ $(id -u) == 197108 ]]; then
|
if [[ $(id -u) == 197108 ]]; then
|
||||||
./install.sh
|
./install.sh
|
||||||
else
|
else
|
||||||
|
@ -93,6 +93,8 @@ if [[ ERROR -ne 0 ]]; then
|
||||||
exit 9
|
exit 9
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
tar -xvf wit.tar.gz
|
||||||
|
cd wit-v*/
|
||||||
if [[ $(id -u) == 0 ]]; then
|
if [[ $(id -u) == 0 ]]; then
|
||||||
./install.sh
|
./install.sh
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue