fix(deploy): guard optional git push flags

This commit is contained in:
2026-07-06 13:04:42 +08:00
parent ea9b3b08c6
commit 99ac24e901
+5 -1
View File
@@ -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 "=========================================="