Handle OPTIONS as additional argments
set -eu
conf=${CONFIG_FILE:-/etc/origin/node/node-config.yaml}
-opts=${OPTIONS:---loglevel=2}
-if [ "$#" -ne 0 ]; then
- opts=""
+if [[ "$#" -eq 0 ]]; then
+ eval "set -- ${OPTIONS:---loglevel=2}"
fi
-exec /usr/bin/openshift start node "--config=${conf}" ${opts} $@
+exec /usr/bin/openshift start node "--config=${conf}" "$@"
