diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-01-05 17:09:30 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-01-05 18:50:17 -0500 |
commit | b07f84783a9b3e4e799e93173977882de6c16fa8 (patch) | |
tree | 0d3a9f85d22695af3c90755e23fc9a8d8d2be9ac /src/lib/conf.sh | |
parent | 56384e572d419a48439a90b9481a715a13a109c8 (diff) |
src/lib/: misc touch-up
Diffstat (limited to 'src/lib/conf.sh')
-rw-r--r-- | src/lib/conf.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/conf.sh b/src/lib/conf.sh index 4445bef..6b1ab49 100644 --- a/src/lib/conf.sh +++ b/src/lib/conf.sh @@ -112,7 +112,7 @@ load_files() { # Check whether the variables listed are properly set. # If not, it prints a message saying to set them in the configuration file(s) # for $slug. -check_vars() { +check_vars() ( local slug=$1; shift local ret=0 @@ -134,7 +134,7 @@ check_vars() { if [[ $ret != 0 ]]; then return 1 fi -} +) # Usage: get_var <slug> <var_name> <default_value> # Does not work with arrays |