summaryrefslogtreecommitdiff
path: root/utils/searx.sh
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-03-04 11:17:24 +0100
committerGitHub <noreply@github.com>2021-03-04 11:17:24 +0100
commit4c2a8aea395cd856f140eee8f93f8b6d23552dc6 (patch)
treef45f1dd93d83d33367ceb6aae3d6a1e3c40d0e6b /utils/searx.sh
parentaac37f288faa84de7db96b99a3dd3cf3ba3f7f5a (diff)
parent237b1cfdb378187cdf597a328e28a64ab694012d (diff)
downloadsearxng-4c2a8aea395cd856f140eee8f93f8b6d23552dc6.tar.gz
searxng-4c2a8aea395cd856f140eee8f93f8b6d23552dc6.zip
Merge pull request #2620 from return42/fix-git
[fix] support git versions <v2.22
Diffstat (limited to 'utils/searx.sh')
-rwxr-xr-xutils/searx.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/searx.sh b/utils/searx.sh
index cedefa7f1..ed015bdd2 100755
--- a/utils/searx.sh
+++ b/utils/searx.sh
@@ -394,8 +394,8 @@ clone_searx() {
info_msg "create local branch ${GIT_BRANCH} from start point: origin/${GIT_BRANCH}"
git branch "${GIT_BRANCH}" "origin/${GIT_BRANCH}"
fi
- if [[ ! $(git branch --show-current) == "${GIT_BRANCH}" ]]; then
- warn_msg "take into account, installing branch $GIT_BRANCH while current branch is $(git branch --show-current)"
+ if [[ ! $(git rev-parse --abbrev-ref HEAD) == "${GIT_BRANCH}" ]]; then
+ warn_msg "take into account, installing branch $GIT_BRANCH while current branch is $(git rev-parse --abbrev-ref HEAD)"
fi
export SERVICE_HOME
git_clone "$REPO_ROOT" "$SEARX_SRC" \