mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-14 11:04:29 +05:00
fix: apply a force reset --hard before updating KIAUH. Fix for #63
This commit is contained in:
0
scripts/install_klipperscreen.sh
Normal file → Executable file
0
scripts/install_klipperscreen.sh
Normal file → Executable file
@@ -2,6 +2,8 @@ update_kiauh(){
|
|||||||
if [ "$KIAUH_UPDATE_AVAIL" = "true" ]; then
|
if [ "$KIAUH_UPDATE_AVAIL" = "true" ]; then
|
||||||
status_msg "Updating KIAUH ..."
|
status_msg "Updating KIAUH ..."
|
||||||
cd ${HOME}/kiauh
|
cd ${HOME}/kiauh
|
||||||
|
### force reset kiauh before updating
|
||||||
|
git reset --hard
|
||||||
git pull && ok_msg "Update complete! Please restart KIAUH."
|
git pull && ok_msg "Update complete! Please restart KIAUH."
|
||||||
exit -1
|
exit -1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user