fix build pipe redirection.

This commit is contained in:
Miroslav Šedivý 2022-10-24 22:54:28 +02:00
parent d608e312eb
commit e0bee67e85

2
build
View File

@ -13,7 +13,7 @@ fi
# #
# set git build variables if git exists # 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 then
GIT_COMMIT=`git rev-parse --short HEAD` GIT_COMMIT=`git rev-parse --short HEAD`
GIT_BRANCH=`git rev-parse --symbolic-full-name --abbrev-ref HEAD` GIT_BRANCH=`git rev-parse --symbolic-full-name --abbrev-ref HEAD`