mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-14 02:54:28 +05:00
fix: should fix #65
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
kiauh_status(){
|
kiauh_status(){
|
||||||
if [ -d "${SRCDIR}/kiauh/.git" ]; then
|
if [ -d "${SRCDIR}/kiauh/.git" ]; then
|
||||||
cd ${HOME}/kiauh
|
cd ${SRCDIR}/kiauh
|
||||||
git fetch -q
|
|
||||||
if git branch -a | grep "* master" -q; then
|
if git branch -a | grep "* master" -q; then
|
||||||
|
git fetch -q
|
||||||
if [[ "$(git rev-parse --short=8 origin/master)" != "$(git rev-parse --short=8 HEAD)" ]]; then
|
if [[ "$(git rev-parse --short=8 origin/master)" != "$(git rev-parse --short=8 HEAD)" ]]; then
|
||||||
KIAUH_UPDATE_AVAIL="true"
|
KIAUH_UPDATE_AVAIL="true"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
update_kiauh(){
|
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 ${SRCDIR}/kiauh
|
||||||
### force reset kiauh before updating
|
### force reset kiauh before updating
|
||||||
git reset --hard
|
git reset --hard
|
||||||
git pull && ok_msg "Update complete! Please restart KIAUH."
|
git pull && ok_msg "Update complete! Please restart KIAUH."
|
||||||
|
|||||||
Reference in New Issue
Block a user