Fix branch name not set check
This commit is contained in:
@@ -44,7 +44,7 @@ if [ ! -d "${GIT_WEBHOOK_BASE_FOLDER}" ]; then
|
||||
fi;
|
||||
|
||||
# branch name not set
|
||||
if [ -n "${BRANCH}" ]; then
|
||||
if [ -z "${BRANCH}" ]; then
|
||||
echo "[!] No branch name given";
|
||||
error=1;
|
||||
fi;
|
||||
|
||||
Reference in New Issue
Block a user