From 7a91cf648660ad60e903c005001536723336d087 Mon Sep 17 00:00:00 2001 From: shanzez <78763240+shanzez@users.noreply.github.com> Date: Wed, 3 Apr 2024 23:09:23 -0400 Subject: [PATCH 1/2] Detect integer and non-integer (#435) --- entrypoint.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index d4edd75f37..bc4592b6b6 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -90,8 +90,11 @@ setConfigurationValue() { TYPE="bool" ;; [1-9][0-9]*) - TYPE="integer" - ;; + if [[ "$2" =~ ^[1-9][0-9]*$ ]]; then + TYPE="integer" + else + TYPE="string" + fi [\[\(]*[\]\)]) TYPE="array" ;; From a801754977baaf51da8745820d1392fa540e6502 Mon Sep 17 00:00:00 2001 From: shanzez <78763240+shanzez@users.noreply.github.com> Date: Wed, 3 Apr 2024 23:11:58 -0400 Subject: [PATCH 2/2] Fix --- entrypoint.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/entrypoint.sh b/entrypoint.sh index bc4592b6b6..c77eb9954c 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -95,6 +95,7 @@ setConfigurationValue() { else TYPE="string" fi + ;; [\[\(]*[\]\)]) TYPE="array" ;;