mirror of
https://github.com/kubevela/kubevela.git
synced 2026-07-28 18:01:24 +00:00
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:
@@ -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
|
||||
Reference in New Issue
Block a user