summaryrefslogtreecommitdiff
path: root/vsvs-map
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2020-12-03 15:39:23 +0300
committerAleksey Veresov <aleksey@veresov.pro>2020-12-03 15:39:23 +0300
commit56079f9e4ab71145d095c5a7ba0ecdea7be1128d (patch)
tree966ea76e25de821fab894c2dc5c003648922d15e /vsvs-map
parente82157e5418706f4a39476e6e37389b7b1c7c883 (diff)
downloadvsvs-56079f9e4ab71145d095c5a7ba0ecdea7be1128d.tar
vsvs-56079f9e4ab71145d095c5a7ba0ecdea7be1128d.tar.xz
vsvs-56079f9e4ab71145d095c5a7ba0ecdea7be1128d.zip
.
Diffstat (limited to 'vsvs-map')
-rw-r--r--vsvs-map6
1 files changed, 5 insertions, 1 deletions
diff --git a/vsvs-map b/vsvs-map
index e1cbd49..513310d 100644
--- a/vsvs-map
+++ b/vsvs-map
@@ -14,9 +14,13 @@ do
if [ -z "${key}" ]
then
buf="${buf}"$'\n'"${val}"
- else
+ elif [ -n "${buf}" ]
res="${res}$(echo -n "${buf}" | $1)"
buf="${val}"
fi
done
+if [ -n "${buf}" ]
+ res="${res}$(echo -n "${buf}" | $1)"
+ buf="${val}"
+fi
echo -n "${res}"