update run.sh

pull/373/head
Michael Li 1 year ago
parent f27261082b
commit 94fdf61c1b
No known key found for this signature in database

@ -14,22 +14,30 @@ function push {
echo "git push bitbus $1:$1" echo "git push bitbus $1:$1"
git push bitbus $1:$1 git push bitbus $1:$1
else else
push dev push_all dev r/paopao-ce r/paopao-ce-plus r/paopao-ce-pro r/paopao-ce-xtra
push r/paopao-ce
push r/paopao-ce-plus
push r/paopao-ce-pro
push r/paopao-ce-xtra
fi fi
} }
function push_all {
if [ $# -eq 0 ]; then
push
else
while [ $# -gt 0 ]; do
push $1
shift
done
fi
}
case $1 in case $1 in
"push") "push")
push $2 shift
push_all $@
;; ;;
"merge") "merge")
echo "merge command" echo "merge command"
;; ;;
*) *)
push $2 push_all
;; ;;
esac esac
Loading…
Cancel
Save