summaryrefslogtreecommitdiff
path: root/include/lib.sh
diff options
context:
space:
mode:
Diffstat (limited to 'include/lib.sh')
-rwxr-xr-xinclude/lib.sh9
1 files changed, 3 insertions, 6 deletions
diff --git a/include/lib.sh b/include/lib.sh
index 85f3ac49..907cde47 100755
--- a/include/lib.sh
+++ b/include/lib.sh
@@ -27,13 +27,10 @@ err_()
setvars()
{
- _setvars=""
- [ $# -lt 2 ] && $err "setvars: too few arguments"
- val="$1" && shift 1
- for var in $@; do
+ _setvars="" && [ $# -lt 2 ] && $err "setvars: too few arguments"
+ val="$1" && shift 1 && for var in $@; do
_setvars="$var=\"$val\"; $_setvars"
- done
- printf "%s\n" "${_setvars% }"
+ done; printf "%s\n" "${_setvars% }"
}
chkvars()
{