Added update confirmation

This commit is contained in:
Michael Stanclift 2020-05-21 20:44:21 -05:00
parent 61d4104eed
commit 22c27b08c9

View File

@ -129,6 +129,7 @@ case $# in
exit;; exit;;
esac esac
done done
exit
;; ;;
version) version)
@ -138,9 +139,19 @@ case $# in
;; ;;
update) update)
echo -e "${PURPLE}Info:${NC} Update requested"
echo -e "This will fail unless you installed via Git" echo -e "${GREEN}Success:${NC} Update requested"
git pull echo -e "This will function only if you installed with Git"
select yn in "Update" "Cancel"; do
case $yn in
Yes )
git pull
break;;
No )
echo "No changes have been made to the system"
exit;;
esac
done
exit exit
;; ;;