summaryrefslogtreecommitdiff
path: root/swift-storage.configure
diff options
context:
space:
mode:
Diffstat (limited to 'swift-storage.configure')
-rw-r--r--swift-storage.configure7
1 files changed, 5 insertions, 2 deletions
diff --git a/swift-storage.configure b/swift-storage.configure
index 315a1d31..563b0ed0 100644
--- a/swift-storage.configure
+++ b/swift-storage.configure
@@ -32,9 +32,12 @@ validate_number() {
}
validate_non_empty() {
- if [[ $2 = None ]]
+ local name="$1"
+ local value="$2"
+
+ if [[ $value = None ]]
then
- echo "'$1' cannot be empty" >&2
+ echo "'$name' cannot be empty" >&2
exit 1
fi
}