mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-15 03:24:29 +05:00
bugfix: kiauh status check prevents kiauh from starting if no kiauh .git directory present
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
kiauh_status(){
|
kiauh_status(){
|
||||||
|
if [ -d {$HOME}/kiauh/.git ]; then
|
||||||
cd ${HOME}/kiauh
|
cd ${HOME}/kiauh
|
||||||
git fetch --all -q
|
git fetch --all -q
|
||||||
if git branch -a | grep "* master" -q; then
|
if git branch -a | grep "* master" -q; then
|
||||||
@@ -12,6 +13,7 @@ kiauh_status(){
|
|||||||
KIAUH_UPDATE_AVAIL="true"
|
KIAUH_UPDATE_AVAIL="true"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
klipper_status(){
|
klipper_status(){
|
||||||
|
|||||||
Reference in New Issue
Block a user