please for the love of all things mighty, WORK

This commit is contained in:
Brendan Webb 2021-08-22 17:38:08 +10:00
parent f544ee169f
commit 6f5339e0de
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ echo "(try re-running this script with sudo.)"
exit
fi
if [ "$1" = "update" ]; then
if [ "$1" = "-u" ]; then
mv wpset /bin/wpset
chmod +x /bin/wpset
cd /home/$USER/

View File

@ -30,7 +30,7 @@ unzip $DOWNLOAD_FNAME -d /home/$USER/$DOWNLOAD_FOLDER
cd /home/$USER/$DOWNLOAD_FOLDER
chmod +x /home/$USER/$DOWNLOAD_FOLDER/brendotools-wallman/wpset-setup
echo "sudo privileges are required to continue. enter your password."
sudo /home/$USER/$DOWNLOAD_FOLDER/brendotools-wallman/wpset-setup update
sudo /home/$USER/$DOWNLOAD_FOLDER/brendotools-wallman/wpset-setup -u
sleep 1