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;;
esac
done
exit
;;
version)
@ -138,9 +139,19 @@ case $# in
;;
update)
echo -e "${PURPLE}Info:${NC} Update requested"
echo -e "This will fail unless you installed via Git"
git pull
echo -e "${GREEN}Success:${NC} Update requested"
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
;;