summaryrefslogtreecommitdiff
path: root/vsvs-parse
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2020-12-06 23:00:38 +0300
committerAleksey Veresov <aleksey@veresov.pro>2020-12-06 23:00:38 +0300
commit2282ef61b60c1ce90ce7ac056781bfba0d7bdfec (patch)
tree13ec3bce878111cae8e65c33884299ea9e930a18 /vsvs-parse
parent217fc658ff15c7dc00e61d90b13cd84b0adc63b1 (diff)
downloadvsvs-2282ef61b60c1ce90ce7ac056781bfba0d7bdfec.tar
vsvs-2282ef61b60c1ce90ce7ac056781bfba0d7bdfec.tar.xz
vsvs-2282ef61b60c1ce90ce7ac056781bfba0d7bdfec.zip
.
Diffstat (limited to 'vsvs-parse')
-rw-r--r--vsvs-parse4
1 files changed, 2 insertions, 2 deletions
diff --git a/vsvs-parse b/vsvs-parse
index c06e777..2992136 100644
--- a/vsvs-parse
+++ b/vsvs-parse
@@ -9,9 +9,9 @@ do
if test -z "${line%% *}"
then value="${value}"$'\n'"$(after " " "$line")"
else
- eval $1
+ test -z "$key" && eval $1
key="${line%% *}"
value="$(after " " "$line")"
fi
done
-eval $1
+test -z "$key" && eval $1