diff options
Diffstat (limited to 'swift-storage.configure')
-rw-r--r-- | swift-storage.configure | 7 |
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 } |