脚本执行内容修改
This commit is contained in:
parent
87af0963fc
commit
5bf7be12b5
|
|
@ -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"`
|
||||
|
|
|
|||
Loading…
Reference in New Issue