mirror of https://github.com/kubevela/kubevela.git
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:
parent
3fdf39c8e1
commit
3aa16bb5d1
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue