hopefully this works first try
This commit is contained in:
parent
ff4cc6a190
commit
28933bcce9
1 changed files with 24 additions and 8 deletions
28
patch_iso.sh
28
patch_iso.sh
|
@ -71,18 +71,34 @@ if [[ ERROR -ne 0 ]]; then
|
||||||
elif [[ "$OSTYPE" == "darwin"* ]]; then
|
elif [[ "$OSTYPE" == "darwin"* ]]; 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
|
||||||
break
|
if [[ $arch == x86_64* ]]; then
|
||||||
|
curl https://wit.wiimm.de/download/wit-v3.04a-r8427-cygwin64.zip > wit.tar.gz
|
||||||
|
elif [[ $arch == i*86 ]]; then
|
||||||
|
curl https://wit.wiimm.de/download/wit-v3.04a-r8427-cygwin32.zip > 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
|
||||||
|
export CYGWIN='yes'
|
||||||
else
|
else
|
||||||
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
|
tar -xvf wit.tar.gz
|
||||||
cd wit-v*/
|
cd wit-v*/
|
||||||
if [[ $(id -u) == 0 ]]; then
|
if [[ $CYGWIN ]]; then
|
||||||
./install.sh
|
if [[ $(id -u) == 197108 ]]; then
|
||||||
|
./install.sh
|
||||||
|
else
|
||||||
|
echo "ERROR: Please run Cygwin as Administrator to install wit."
|
||||||
|
exit 9
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
echo "You will now be prompted to enter your password for sudo in order for wit to install."
|
if [[ $(id -u) == 0 ]]; then
|
||||||
sudo ./install.sh
|
./install.sh
|
||||||
|
else
|
||||||
|
echo "You will now be prompted to enter your password for sudo in order for wit to install."
|
||||||
|
sudo ./install.sh
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
cd ..
|
cd ..
|
||||||
rm -rf wit-v*/
|
rm -rf wit-v*/
|
||||||
|
@ -92,7 +108,7 @@ if [[ ERROR -ne 0 ]]; then
|
||||||
echo
|
echo
|
||||||
|
|
||||||
if [[ ERROR -ne 0 ]]; then
|
if [[ ERROR -ne 0 ]]; then
|
||||||
echo "ERROR: wit still does not seem to be installed. Please make sure that '/usr/local/bin' is on your PATH by running 'echo \$PATH'."
|
echo "ERROR: wit still does not seem to be installed. Try running 'sudo ./patch_iso.sh' or use another privledge escalator and make sure that '/usr/local/bin' is on your PATH by running 'echo \$PATH'."
|
||||||
exit 4
|
exit 4
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue