fix(deploy): guard optional git push flags
This commit is contained in:
@@ -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 "=========================================="
|
||||
|
||||
Reference in New Issue
Block a user