diff --git a/entrypoint.sh b/entrypoint.sh index 9af05eb1c2..53d7426b26 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -118,14 +118,15 @@ setConfigurationValue() { local VALUE local TYPE="$3" if [ -z "$TYPE" ]; then - case "$2" in + VALUE_RSTRIP="$(echo -e "$2" | tr -d '[:space:]')" + case "$VALUE_RSTRIP" in [Tt][Rr][Uu][Ee] | [Ff][Aa][Ll][Ss][Ee] | [Nn]one) TYPE="bool" ;; +([0-9])) TYPE="integer" ;; - [\[\(]*[\]\)]) + [\[\(\{]*[\]\)\}]) TYPE="array" ;; *)