fix(deploy): guard optional git push flags

This commit is contained in:
2026-07-06 13:04:42 +08:00
parent ea9b3b08c6
commit 99ac24e901
+4
View File
@@ -34,7 +34,11 @@ push_to_remote() {
return 1 return 1
fi fi
if [ "${#push_args[@]}" -gt 0 ]; then
git push "${push_args[@]}" "$remote" "$branch" git push "${push_args[@]}" "$remote" "$branch"
else
git push "$remote" "$branch"
fi
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
echo "==========================================" echo "=========================================="