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 "=========================================="