winlin

fix bug of commit script

@@ -24,7 +24,7 @@ product_dir=$work_dir @@ -24,7 +24,7 @@ product_dir=$work_dir
24 24
25 # allow start script from any dir 25 # allow start script from any dir
26 cd $work_dir && work_branch=`git branch -a|grep "*"|awk '{print $2}'` && commit_branch=2.0release && git checkout $commit_branch 26 cd $work_dir && work_branch=`git branch -a|grep "*"|awk '{print $2}'` && commit_branch=2.0release && git checkout $commit_branch
27 -ret=$"; if [[ $ret -ne 0 ]]; then echo "switch branch failed. ret=$ret"; exit $ret; fi 27 +ret=$ret; if [[ $ret -ne 0 ]]; then echo "switch branch failed. ret=$ret"; exit $ret; fi
28 echo "work branch is $work_branch" 28 echo "work branch is $work_branch"
29 echo "commit branch is $commit_branch" 29 echo "commit branch is $commit_branch"
30 30