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