From 5bf7be12b5788f8909b240fb5cea3b4a540fe94b Mon Sep 17 00:00:00 2001 From: junleea <354425203@qq.com> Date: Mon, 8 Jul 2024 14:42:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=84=9A=E6=9C=AC=E6=89=A7=E8=A1=8C=E5=86=85?= =?UTF-8?q?=E5=AE=B9=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handler/cid.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/handler/cid.go b/handler/cid.go index 56f0655..84e434d 100644 --- a/handler/cid.go +++ b/handler/cid.go @@ -73,18 +73,15 @@ if [ ! -d $TARGET_DIR ]; then git clone ` + cid.Url + ` if [ $? -ne 0 ]; then echo "Failed to clone repository." - exit 1 fi fi cd "$TARGET_DIR" if [ $? -ne 0 ]; then echo "Failed to change directory to $TARGET_DIR." - exit 1 fi git pull if [ $? -ne 0 ]; then echo "Failed to pull repository." - exit 1 fi ` + cid.Script + ` echo "end"` @@ -223,18 +220,15 @@ if [ ! -d $TARGET_DIR ]; then git clone ` + res.Url + ` if [ $? -ne 0 ]; then echo "Failed to clone repository." - exit 1 fi fi cd "$TARGET_DIR" if [ $? -ne 0 ]; then echo "Failed to change directory to $TARGET_DIR." - exit 1 fi git pull if [ $? -ne 0 ]; then echo "Failed to pull repository." - exit 1 fi ` + res.Script + ` echo "end"`