diff options
author | jak1 <jak1@themanaworld.org> | 2022-06-21 22:16:41 +0000 |
---|---|---|
committer | jak1 <jak1@themanaworld.org> | 2022-06-21 22:16:41 +0000 |
commit | d1b37897bd89028cad479c5f9925ae32d6ed24dc (patch) | |
tree | 360753b3e606933be12cf897b39e617fb2326b06 | |
parent | 354234cb43e269693f81bf4fe317f15e03f4707d (diff) | |
download | mv-d1b37897bd89028cad479c5f9925ae32d6ed24dc.tar.gz mv-d1b37897bd89028cad479c5f9925ae32d6ed24dc.tar.bz2 mv-d1b37897bd89028cad479c5f9925ae32d6ed24dc.tar.xz mv-d1b37897bd89028cad479c5f9925ae32d6ed24dc.zip |
updated init.sh ci script to use gitlab variable `CI_RUNNER_ID`
-rwxr-xr-x | tools/ci/scripts/init.sh | 6 |
1 files 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 |