mirror of
https://github.com/zulip/docker-zulip.git
synced 2025-10-23 16:13:45 +00:00
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:
@@ -5,6 +5,7 @@ if [ "$DEBUG" = "true" ] || [ "$DEBUG" = "True" ]; then
|
|||||||
set -o functrace
|
set -o functrace
|
||||||
fi
|
fi
|
||||||
set -e
|
set -e
|
||||||
|
shopt -s extglob
|
||||||
|
|
||||||
# DB aka Database
|
# DB aka Database
|
||||||
DB_HOST="${DB_HOST:-127.0.0.1}"
|
DB_HOST="${DB_HOST:-127.0.0.1}"
|
||||||
@@ -108,7 +109,7 @@ setConfigurationValue() {
|
|||||||
[Tt][Rr][Uu][Ee]|[Ff][Aa][Ll][Ss][Ee]|[Nn]one)
|
[Tt][Rr][Uu][Ee]|[Ff][Aa][Ll][Ss][Ee]|[Nn]one)
|
||||||
TYPE="bool"
|
TYPE="bool"
|
||||||
;;
|
;;
|
||||||
[0-9]*)
|
+([0-9]))
|
||||||
TYPE="integer"
|
TYPE="integer"
|
||||||
;;
|
;;
|
||||||
[\[\(]*[\]\)])
|
[\[\(]*[\]\)])
|
||||||
|
Reference in New Issue
Block a user