From 94fdf61c1b21e58491ee2c33563e48d2e8b7bf2f Mon Sep 17 00:00:00 2001 From: Michael Li Date: Mon, 28 Aug 2023 14:15:26 +0800 Subject: [PATCH] update run.sh --- run.sh | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/run.sh b/run.sh index a0f50f44..bf4ee85f 100755 --- a/run.sh +++ b/run.sh @@ -14,22 +14,30 @@ function push { echo "git push bitbus $1:$1" git push bitbus $1:$1 else - push dev - push r/paopao-ce - push r/paopao-ce-plus - push r/paopao-ce-pro - push r/paopao-ce-xtra + push_all dev r/paopao-ce r/paopao-ce-plus r/paopao-ce-pro r/paopao-ce-xtra fi } +function push_all { + if [ $# -eq 0 ]; then + push + else + while [ $# -gt 0 ]; do + push $1 + shift + done + fi +} + case $1 in "push") - push $2 + shift + push_all $@ ;; "merge") echo "merge command" ;; *) - push $2 + push_all ;; esac \ No newline at end of file