From e0bee67e85a4c4dee429d5c649227581b9e2c479 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Mon, 24 Oct 2022 22:54:28 +0200 Subject: [PATCH] fix build pipe redirection. --- build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build b/build index d52c69ef..ee092a8c 100755 --- a/build +++ b/build @@ -13,7 +13,7 @@ fi # # set git build variables if git exists -if git status 2>&1 > /dev/null && [ -z $GIT_COMMIT ] && [ -z $GIT_BRANCH ] && [ -z $GIT_TAG ]; +if git status > /dev/null 2>&1 && [ -z $GIT_COMMIT ] && [ -z $GIT_BRANCH ] && [ -z $GIT_TAG ]; then GIT_COMMIT=`git rev-parse --short HEAD` GIT_BRANCH=`git rev-parse --symbolic-full-name --abbrev-ref HEAD`