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