From 85476a97a6f79fa285b9cd9fe9944f9d3163d17b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=99=E2=97=A6=20The=20Tablet=20=E2=9D=80=20GamerGirla?= =?UTF-8?q?ndCo=20=E2=97=A6=E2=9D=A7?= Date: Tue, 2 Jan 2024 23:30:07 -0500 Subject: [PATCH] vars --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9eb52dd..570b005 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -30,7 +30,8 @@ clone: tags: - shell before_script: - - git config --local --list | grep -iE '^url' | sed -E 's,=.*$,,gm' | xargs -d $'\n' -I '{}' git config --local --unset '{}' + - varia=$(git config --local --list | grep -iE '^url') + - [[ -z $varia ]] && (echo $varia | sed -E 's,=.*$,,gm' | xargs -d $'\n' -I '{}' git config --local --unset '{}') - set -x - git config --local url."https://deployer:${DEPLOY_TOKEN}@git.tablet.sh/".insteadOf "git@git.tablet.sh:" ##- git config --local submodule.content.url "https://deployer:${DEPLOY_TOKEN}@git.tablet.sh/the-btfash-foundation/tablet.sh"