Refactor: Minor changes on shell script to support double quotes format and [ ] POSIX (#3889)

* refactors sync sh

Signed-off-by: afzal442 <afzal442@gmail.com>

* fixes POSIX sh, as [[ ]] is undefined.

Signed-off-by: afzal442 <afzal442@gmail.com>
This commit is contained in:
Afzal Ansari 2022-05-14 10:51:28 +05:30 committed by GitHub
parent 3fdf39c8e1
commit 3aa16bb5d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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