fix: apply a force reset --hard before updating KIAUH. Fix for #63

This commit is contained in:
th33xitus committed 2021-01-23 22:52:41 +01:00
1 parent 036fb08132
commit d12554d2b7
2 files changed
+2

No files matched your search

Regular → Executable
View File
File mode changed.
+2
View File
@@ -2,6 +2,8 @@ update_kiauh(){
if [ "$KIAUH_UPDATE_AVAIL" = "true" ]; then
status_msg "Updating KIAUH ..."
cd ${HOME}/kiauh
### force reset kiauh before updating
git reset --hard
git pull && ok_msg "Update complete! Please restart KIAUH."
exit -1
fi