mirror of
https://github.com/dw-0/kiauh.git
synced 2026-05-06 01:08:17 +05:00
fix: bug in klipper version check
This commit is contained in:
Executable → Regular
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Executable → Regular
Executable → Regular
+4
-3
@@ -176,12 +176,13 @@ read_local_klipper_commit(){
|
|||||||
read_remote_klipper_commit(){
|
read_remote_klipper_commit(){
|
||||||
read_branch
|
read_branch
|
||||||
if [ ! -z "$GET_BRANCH" ];then
|
if [ ! -z "$GET_BRANCH" ];then
|
||||||
if [[ "$GET_BRANCH" == "origin/master" || "master" ]]; then
|
if [ "$GET_BRANCH" = "origin/master" ] || [ "$GET_BRANCH" = "master" ]; then
|
||||||
git fetch origin master -q
|
git fetch origin -q
|
||||||
|
REMOTE_COMMIT=$(git rev-parse --short=8 origin)
|
||||||
else
|
else
|
||||||
git fetch $(echo "$GET_BRANCH" | cut -d"/" -f1) -q
|
git fetch $(echo "$GET_BRANCH" | cut -d"/" -f1) -q
|
||||||
fi
|
|
||||||
REMOTE_COMMIT=$(git rev-parse --short=8 $GET_BRANCH)
|
REMOTE_COMMIT=$(git rev-parse --short=8 $GET_BRANCH)
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
REMOTE_COMMIT="${red}--------${default}"
|
REMOTE_COMMIT="${red}--------${default}"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user