summaryrefslogtreecommitdiff
path: root/bin/hstow
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2023-01-13 20:07:54 -0700
committerSean Whitton <spwhitton@spwhitton.name>2023-01-13 20:08:38 -0700
commitce6717ee00d5d70d2c3688a5d3c1292229196daf (patch)
treeab0f435e7f1e19d7d9776b0f02ef4d189a85ecac /bin/hstow
parent3256bc2ce259a77f5718e83bd4d87a67455aeb26 (diff)
downloaddotfiles-ce6717ee00d5d70d2c3688a5d3c1292229196daf.tar.gz
hstow: disjoin_hstow_file: skip blank lines
Diffstat (limited to 'bin/hstow')
-rwxr-xr-xbin/hstow2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/hstow b/bin/hstow
index 9f34add6..d263fac3 100755
--- a/bin/hstow
+++ b/bin/hstow
@@ -47,7 +47,7 @@ fi
disjoin_hstow_file () {
if [ -e "$DIR/$1" ]; then
while read -r line; do
- printf "|$2" "$line"
+ [ -n "$line" ] && printf "|$2" "$line"
done <"$DIR/$1" | cut -c2-
fi
}