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"`