new kiauh update check

This commit is contained in:
th33xitus
2020-08-05 00:03:54 +02:00
parent 9fcbcfcba8
commit be6a63f95b
4 changed files with 15 additions and 13 deletions

View File

@@ -1,8 +1,9 @@
update_kiauh(){
if [ $KIAUH_UPDATE_AVAIL = 1 ]; then
if [ $KIAUH_UPDATE_AVAIL -gt 0 ]; then
status_msg "Updating KIAUH ..."
cd ${HOME}/kiauh
git pull && ok_msg "Update complete! Please restart KIAUH."; echo
git pull && ok_msg "Update complete! Please restart KIAUH."
exit -1
fi
}