diff options
author | dd <dd@wx.tnyzeq.icu> | 2024-07-02 15:51:58 +0200 |
---|---|---|
committer | dd <dd@wx.tnyzeq.icu> | 2024-07-02 16:05:30 +0200 |
commit | ddbba63f14348afcb4a76b8d2cbe16dc99b04332 (patch) | |
tree | ccea73d62d0e4821648c31d5ae9824f74f0f39b4 /auto/helper-logic | |
parent | 4913bbd06b9ce73453ff5667f4b195be75adcb0e (diff) | |
download | vyos-jenkins-ddbba63f14348afcb4a76b8d2cbe16dc99b04332.tar.gz vyos-jenkins-ddbba63f14348afcb4a76b8d2cbe16dc99b04332.zip |
fixed default BRANCH value
Diffstat (limited to 'auto/helper-logic')
-rw-r--r-- | auto/helper-logic | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/auto/helper-logic b/auto/helper-logic index 236035b..7642c9a 100644 --- a/auto/helper-logic +++ b/auto/helper-logic @@ -47,8 +47,10 @@ elif [ "$BRANCH" == "equuleus" ]; then EXCLUDED_DESCRIPTION="sagitta-only" SELECTED_BRANCH_REGEX="equuleus" else - >&2 echo -e "${RED}Unknown branch: $SELECTED_BRANCH, please provide valid \$BRANCH (sagitta or equuleus)${NOCOLOR}" - exit 1 + if [ "$BRANCH" != "" ]; then + >&2 echo -e "${RED}Unknown branch: $SELECTED_BRANCH, please provide valid \$BRANCH (sagitta or equuleus)${NOCOLOR}" + exit 1 + fi fi function PrintHeader { |