From 99ac24e90197ced9349288a10e83fbacf8f59a5a Mon Sep 17 00:00:00 2001 From: chenhang Date: Mon, 6 Jul 2026 13:04:42 +0800 Subject: [PATCH] fix(deploy): guard optional git push flags --- scripts/deploy/_deploy_lib.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/deploy/_deploy_lib.sh b/scripts/deploy/_deploy_lib.sh index e687f477..663e87af 100755 --- a/scripts/deploy/_deploy_lib.sh +++ b/scripts/deploy/_deploy_lib.sh @@ -34,7 +34,11 @@ push_to_remote() { return 1 fi - git push "${push_args[@]}" "$remote" "$branch" + if [ "${#push_args[@]}" -gt 0 ]; then + git push "${push_args[@]}" "$remote" "$branch" + else + git push "$remote" "$branch" + fi if [ $? -eq 0 ]; then echo "=========================================="