From ddbba63f14348afcb4a76b8d2cbe16dc99b04332 Mon Sep 17 00:00:00 2001
From: dd
Date: Tue, 2 Jul 2024 15:51:58 +0200
Subject: fixed default BRANCH value
---
auto/helper-logic | 6 ++++--
manual/seed-jobs.sh | 6 ++++--
2 files changed, 8 insertions(+), 4 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 {
diff --git a/manual/seed-jobs.sh b/manual/seed-jobs.sh
index b148a9b..a5a1f5f 100755
--- a/manual/seed-jobs.sh
+++ b/manual/seed-jobs.sh
@@ -67,8 +67,10 @@ if [ "$selectedBranch" == "sagitta" ]; then
elif [ "$selectedBranch" == "equuleus" ]; then
excludedDescription="sagitta-only"
else
- >&2 echo -e "ERROR: Unknown branch: $selectedBranch, please provide valid \$BRANCH (sagitta or equuleus)"
- exit 1
+ if [ "$selectedBranch" != "" ]; then
+ >&2 echo -e "ERROR: Unknown branch: $selectedBranch, please provide valid \$BRANCH (sagitta or equuleus)"
+ exit 1
+ fi
fi
if [[ "$mode" == "create" ]]; then
--
cgit v1.2.3