entrypoint: Use extended globbing for integer detection.

This fixes #150, and should eliminate the possibility for future bugs
in the same vein.

I still want to eliminate this whole type-detection system, but that's
for future work.
This commit is contained in:
Tim Abbott
2018-08-13 15:39:40 -07:00
parent b2f3ab2efc
commit 081e64c46e

View File

@@ -5,6 +5,7 @@ if [ "$DEBUG" = "true" ] || [ "$DEBUG" = "True" ]; then
set -o functrace
fi
set -e
shopt -s extglob
# DB aka Database
DB_HOST="${DB_HOST:-127.0.0.1}"
@@ -108,7 +109,7 @@ setConfigurationValue() {
[Tt][Rr][Uu][Ee]|[Ff][Aa][Ll][Ss][Ee]|[Nn]one)
TYPE="bool"
;;
[0-9]*)
+([0-9]))
TYPE="integer"
;;
[\[\(]*[\]\)])