summaryrefslogtreecommitdiff
path: root/vsvs-map
diff options
context:
space:
mode:
Diffstat (limited to 'vsvs-map')
-rw-r--r--vsvs-map10
1 files changed, 6 insertions, 4 deletions
diff --git a/vsvs-map b/vsvs-map
index fec86f1..dbe1ecb 100644
--- a/vsvs-map
+++ b/vsvs-map
@@ -14,14 +14,16 @@ do
if [ -z "${key}" ]
then
buf="${buf}"$'\n'"${val}"
- elif [ -n "${buf}" ]
- then
- res="${res}$(echo -n "${buf}" | $1)"
+ else
+ if [ -n "${buf}" ]
+ then
+ res="${res}$(echo -n "${buf}" | $1)"
+ fi
buf="${val}"
fi
done
if [ -n "${buf}" ]
+then
res="${res}$(echo -n "${buf}" | $1)"
- buf="${val}"
fi
echo -n "${res}"