diff options
author | Liam Fallon <liam.fallon@est.tech> | 2022-07-05 15:48:49 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2022-07-05 15:48:49 +0000 |
commit | 6b1cce21dc4be12030df4753c5294f94be0dd596 (patch) | |
tree | e3c163fe82e3a43b1f0e10781e5689404b2f99c9 /csit/get-versions.sh | |
parent | 81b579eabbcc4edb7956260caf32c70bc8640e9d (diff) | |
parent | 47961b20114f6c587dad19399e91788d01a74266 (diff) |
Merge "Make CSIT scripts locally executable" into jakarta
Diffstat (limited to 'csit/get-versions.sh')
-rwxr-xr-x[-rw-r--r--] | csit/get-versions.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/csit/get-versions.sh b/csit/get-versions.sh index 623b85eb..30a581b6 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} |