diff options
author | Jorge Hernandez <jorge.hernandez-herrero@att.com> | 2022-06-17 12:01:02 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2022-06-17 12:01:02 +0000 |
commit | 1d450ff2cc00177a4915644884da1e151f1b0ebb (patch) | |
tree | 621d2e766ed957a534eab2f281919fd0e8369e3f /csit/get-versions.sh | |
parent | 476480c7c7687c8a98f91cce77af0db6124945ff (diff) | |
parent | e84250cc5874fdf309fc21e22311bc7501f2621c (diff) |
Merge "Make CSIT scripts locally executable"
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 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} |