From d1b37897bd89028cad479c5f9925ae32d6ed24dc Mon Sep 17 00:00:00 2001 From: jak1 Date: Tue, 21 Jun 2022 22:16:41 +0000 Subject: updated init.sh ci script to use gitlab variable `CI_RUNNER_ID` --- tools/ci/scripts/init.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/ci/scripts/init.sh b/tools/ci/scripts/init.sh index f427be910..58d072dfe 100755 --- a/tools/ci/scripts/init.sh +++ b/tools/ci/scripts/init.sh @@ -13,7 +13,7 @@ function do_init { } function update_repos { - if [ "$RUNFROMSHELL" != "" ]; + if [ "$CI_RUNNER_ID" == "" ]; then echo "Running from shell. Skipping update repos" return @@ -29,7 +29,7 @@ function update_repos { } function aptget_update { - if [ "$RUNFROMSHELL" != "" ]; + if [ "$CI_RUNNER_ID" == "" ]; then echo "Running from shell. Skipping apt-get update" return @@ -59,7 +59,7 @@ function aptget_update { } function aptget_install { - if [ "$RUNFROMSHELL" != "" ]; + if [ "$CI_RUNNER_ID" == "" ]; then echo "Running from shell. Skipping apt-get" return -- cgit v1.2.3-60-g2f50