summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--swift-storage.configure2
1 files changed, 1 insertions, 1 deletions
diff --git a/swift-storage.configure b/swift-storage.configure
index d2b72d35..9305c195 100644
--- a/swift-storage.configure
+++ b/swift-storage.configure
@@ -23,7 +23,7 @@ validate_number() {
local name="$1"
local value="$2"
- local pattern='[0-9]+'
+ local pattern='^[0-9]+$'
if ! [[ $value =~ $pattern ]]
then
echo "'$name' must be a number" >&2