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

This commit is contained in:
th33xitus
2021-01-23 15:52:51 +01:00
parent 036fb08132
commit d12554d2b7
2 changed files with 2 additions and 0 deletions

0
scripts/install_klipperscreen.sh Normal file → Executable file
View File

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