From fa8155c9dc3ee7a127e1489576f4b02323d5e585 Mon Sep 17 00:00:00 2001 From: n3t1zen Date: Mon, 4 May 2026 13:06:11 +0800 Subject: [PATCH] script syntax error --- bin/update | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/update b/bin/update index aedd7a5..7201141 100755 --- a/bin/update +++ b/bin/update @@ -8,8 +8,8 @@ REV_FILE="$ROOT/works/rev" # defaults REPO_URL="git@git.inker.bot:arknights/sing-box.git" -if [ ! -z $CI_JOB_TOKEN ]; then - REPO_URL=$(echo $REPO_URL | sed "s/git/gitlab-ci-token:$CI_JOB_TOKEN/") +if [ ! -z "$CI_JOB_TOKEN" ]; then + REPO_URL=$(echo $REPO_URL | sed "s/git@/gitlab-ci-token:$CI_JOB_TOKEN@/") fi UPSTREAM_BRANCH="main"