Commit 70335dc7 authored by QA-甘 盛聪's avatar QA-甘 盛聪
parents 1136d21c 353d44c6
......@@ -21,12 +21,6 @@ function getCode()
git pull
if [ -n "$git_branch" ]; then
git checkout -f $git_branch
if [ $? = 0 ]; then
echo "checkout branch $git_branch is ok"
else
echo "Fail to checkout branch $git_branch"
exit 128
fi
fi
git pull
else
......
......@@ -4,10 +4,6 @@ branch_name=$2
public_ip=$3
sh 2_get_code_by_type.sh $project_type $branch_name
if [[ $? == 128 ]]; then
echo "Invalid argument to exit"
exit
fi
sh 3_link_config_file_by_type.sh $project_type $public_ip
sh 4_build_by_type.sh $project_type $public_ip
sh 5_restart_by_type.sh $project_type $public_ip
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment