summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjak1 <jak1@themanaworld.org>2022-06-21 22:16:41 +0000
committerjak1 <jak1@themanaworld.org>2022-06-21 22:16:41 +0000
commitd1b37897bd89028cad479c5f9925ae32d6ed24dc (patch)
tree360753b3e606933be12cf897b39e617fb2326b06
parent354234cb43e269693f81bf4fe317f15e03f4707d (diff)
downloadplus-d1b37897bd89028cad479c5f9925ae32d6ed24dc.tar.gz
plus-d1b37897bd89028cad479c5f9925ae32d6ed24dc.tar.bz2
plus-d1b37897bd89028cad479c5f9925ae32d6ed24dc.tar.xz
plus-d1b37897bd89028cad479c5f9925ae32d6ed24dc.zip
updated init.sh ci script to use gitlab variable `CI_RUNNER_ID`
-rwxr-xr-xtools/ci/scripts/init.sh6
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