put cygwin commands in wrong place
This commit is contained in:
parent
65b4e65095
commit
5cf0f194b6
1 changed files with 2 additions and 2 deletions
|
@ -84,6 +84,7 @@ if [[ ERROR -ne 0 ]]; then
|
||||||
exit 2;
|
exit 2;
|
||||||
fi
|
fi
|
||||||
if [[ $CYGWIN ]]; then
|
if [[ $CYGWIN ]]; then
|
||||||
|
chown Administrator:None .
|
||||||
powershell -command "Expand-Archive -Force .\wit.zip ."
|
powershell -command "Expand-Archive -Force .\wit.zip ."
|
||||||
cd wit-v*/
|
cd wit-v*/
|
||||||
if [[ $(id -u) == 197108 ]]; then
|
if [[ $(id -u) == 197108 ]]; then
|
||||||
|
@ -92,13 +93,12 @@ if [[ ERROR -ne 0 ]]; then
|
||||||
echo "ERROR: Please run Cygwin as Administrator to install wit."
|
echo "ERROR: Please run Cygwin as Administrator to install wit."
|
||||||
exit 9
|
exit 9
|
||||||
fi
|
fi
|
||||||
|
export PATH="$PATH:/cygdrive/c/Program Files/Wiimm/WIT:/cygdrive/c/Program Files (x86)/Wiimm/WIT"
|
||||||
else
|
else
|
||||||
tar -xvf wit.tar.gz
|
tar -xvf wit.tar.gz
|
||||||
cd wit-v*/
|
cd wit-v*/
|
||||||
if [[ $(id -u) == 0 ]]; then
|
if [[ $(id -u) == 0 ]]; then
|
||||||
chown Administrator:None .
|
|
||||||
./install.sh
|
./install.sh
|
||||||
export PATH="$PATH:/cygdrive/c/Program Files/Wiimm/WIT:/cygdrive/c/Program Files (x86)/Wiimm/WIT"
|
|
||||||
else
|
else
|
||||||
echo "You will now be prompted to enter your password for sudo in order for wit to install."
|
echo "You will now be prompted to enter your password for sudo in order for wit to install."
|
||||||
sudo ./install.sh
|
sudo ./install.sh
|
||||||
|
|
Loading…
Add table
Reference in a new issue