Files
kubevela/entrypoint.sh
Afzal Ansari 3aa16bb5d1 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>
2022-05-14 13:21:28 +08:00

13 lines
165 B
Bash
Executable File

#!/bin/sh
if [ "${1#-}" != "$1" ]; then
set -- manager "$@"
fi
if [ "$1" = "apiserver" ]; then
shift # "apiserver"
set -- apiserver "$@"
fi
exec "$@"