diff options
author | Alexandre Flament <alex@al-f.net> | 2021-03-04 11:17:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-04 11:17:24 +0100 |
commit | 4c2a8aea395cd856f140eee8f93f8b6d23552dc6 (patch) | |
tree | f45f1dd93d83d33367ceb6aae3d6a1e3c40d0e6b | |
parent | aac37f288faa84de7db96b99a3dd3cf3ba3f7f5a (diff) | |
parent | 237b1cfdb378187cdf597a328e28a64ab694012d (diff) | |
download | searxng-4c2a8aea395cd856f140eee8f93f8b6d23552dc6.tar.gz searxng-4c2a8aea395cd856f140eee8f93f8b6d23552dc6.zip |
Merge pull request #2620 from return42/fix-git
[fix] support git versions <v2.22
-rwxr-xr-x | utils/searx.sh | 4 |
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" \ |