diff --git a/entrypoint.sh b/entrypoint.sh index 073875004..93f16deb0 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,10 +1,10 @@ #!/bin/sh -if [[ "${1#-}" != "$1" ]]; then +if [ "${1#-}" != "$1" ]; then set -- manager "$@" fi -if [[ "$1" = "apiserver" ]]; then +if [ "$1" = "apiserver" ]; then shift # "apiserver" set -- apiserver "$@" fi diff --git a/hack/apis/sync.sh b/hack/apis/sync.sh index 2f0a9e020..3947b4477 100644 --- a/hack/apis/sync.sh +++ b/hack/apis/sync.sh @@ -75,7 +75,7 @@ then else git add . git commit -m "align with kubevela-$VERSION from commit $COMMIT_ID" - git tag $VERSION + git tag "$VERSION" git push origin main - git push origin $VERSION + git push origin "$VERSION" fi \ No newline at end of file