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