fix: apply a force reset --hard before updating KIAUH. Fix for #63
This commit is contained in:
1 parent
036fb08132
commit
d12554d2b7
2 files changed
+2
No files matched your search
Regular → Executable
File mode changed.
@@ -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