@@ -394,8 +394,8 @@ clone_searx() {
394394 info_msg "create local branch ${GIT_BRANCH} from start point: origin/${GIT_BRANCH}"
395395 git branch "${GIT_BRANCH}" "origin/${GIT_BRANCH}"
396396 fi
397− if [[ ! $(git branch --show-current) == "${GIT_BRANCH}" ]]; then
398− warn_msg "take into account, installing branch $GIT_BRANCH while current branch is $(git branch --show-current)"
397+ if [[ ! $(git rev-parse --abbrev-ref HEAD) == "${GIT_BRANCH}" ]]; then
398+ warn_msg "take into account, installing branch $GIT_BRANCH while current branch is $(git rev-parse --abbrev-ref HEAD)"
399399 fi
400400 export SERVICE_HOME
401401 git_clone "$REPO_ROOT" "$SEARX_SRC" \