Commit 8ad90a8f authored by GanSC's avatar GanSC

update

parent 2c2941e6
......@@ -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_name.sh $project_name $branch_name
if [[ $? == 128 ]]; then
echo "Invalid argument to exit"
exit
fi
sh 3_link_config_file_by_name.sh $project_name $public_ip
sh 4_build_by_name.sh $project_name $public_ip
sh 5_restart_by_name.sh $project_name $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