fix(deploy): simplify push arguments for main branch
This commit is contained in:
@@ -13,10 +13,7 @@ push_to_remote() {
|
||||
return 1
|
||||
fi
|
||||
|
||||
local push_args=()
|
||||
if [ "$branch" = "main" ]; then
|
||||
push_args+=("--force")
|
||||
fi
|
||||
local push_args=("--force")
|
||||
|
||||
echo "=========================================="
|
||||
echo "git push ${push_args[*]-} $remote $branch ..."
|
||||
|
||||
Reference in New Issue
Block a user