mirror of
https://github.com/zulip/docker-zulip.git
synced 2025-10-23 04:51:58 +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
|
||||
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"
|
||||
;;
|
||||
[\[\(]*[\]\)])
|
||||
|
Reference in New Issue
Block a user