summaryrefslogtreecommitdiff
path: root/vsvs-map
diff options
context:
space:
mode:
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}"