脚本执行内容修改

This commit is contained in:
junleea 2024-07-08 14:42:52 +08:00
parent 87af0963fc
commit 5bf7be12b5
1 changed files with 0 additions and 6 deletions

View File

@ -73,18 +73,15 @@ if [ ! -d $TARGET_DIR ]; then
git clone ` + cid.Url + ` git clone ` + cid.Url + `
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "Failed to clone repository." echo "Failed to clone repository."
exit 1
fi fi
fi fi
cd "$TARGET_DIR" cd "$TARGET_DIR"
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "Failed to change directory to $TARGET_DIR." echo "Failed to change directory to $TARGET_DIR."
exit 1
fi fi
git pull git pull
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "Failed to pull repository." echo "Failed to pull repository."
exit 1
fi fi
` + cid.Script + ` ` + cid.Script + `
echo "end"` echo "end"`
@ -223,18 +220,15 @@ if [ ! -d $TARGET_DIR ]; then
git clone ` + res.Url + ` git clone ` + res.Url + `
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "Failed to clone repository." echo "Failed to clone repository."
exit 1
fi fi
fi fi
cd "$TARGET_DIR" cd "$TARGET_DIR"
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "Failed to change directory to $TARGET_DIR." echo "Failed to change directory to $TARGET_DIR."
exit 1
fi fi
git pull git pull
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "Failed to pull repository." echo "Failed to pull repository."
exit 1
fi fi
` + res.Script + ` ` + res.Script + `
echo "end"` echo "end"`