aboutsummaryrefslogtreecommitdiffstats
path: root/csit/get-versions.sh
diff options
context:
space:
mode:
authorliamfallon <liam.fallon@est.tech>2022-06-17 10:56:00 +0100
committerliamfallon <liam.fallon@est.tech>2022-06-17 10:58:50 +0100
commit47961b20114f6c587dad19399e91788d01a74266 (patch)
treecce4855df5474e4073f8a81f27ef3d9923876b4b /csit/get-versions.sh
parentc23d753d8720e3c0c13e535e1b19ebe9a9c95bbc (diff)
Make CSIT scripts locally executable
The CSIT scripts do not have their executable flags set, this change makes the scripts locally executable. Issue-ID: POLICY-4233 Change-Id: I6ce1f2abc3b3b3a1fa71c393a8f3e26a2fa85144 Signed-off-by: liamfallon <liam.fallon@est.tech>
Diffstat (limited to 'csit/get-versions.sh')
-rwxr-xr-x[-rw-r--r--]csit/get-versions.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/csit/get-versions.sh b/csit/get-versions.sh
index 6e50d088..87c43b50 100644..100755
--- a/csit/get-versions.sh
+++ b/csit/get-versions.sh
@@ -1,3 +1,5 @@
+#! /bin/bash
+
# ============LICENSE_START====================================================
# Copyright (C) 2020-2021 AT&T Intellectual Property. All rights reserved.
# Modification Copyright 2021-2022 Nordix Foundation.
@@ -18,7 +20,13 @@
# SPDX-License-Identifier: Apache-2.0
# ============LICENSE_END======================================================
-source "${SCRIPTS}"/get-branch.sh
+
+if [[ -z "$GERRIT_BRANCH" ]]
+then
+ source "${SCRIPTS}"/get-branch.sh
+else
+ echo GERRIT_BRANCH="${GERRIT_BRANCH}"
+fi
export POLICY_MARIADB_VER=10.5.8
echo POLICY_MARIADB_VER=${POLICY_MARIADB_VER}