From ce6717ee00d5d70d2c3688a5d3c1292229196daf Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Fri, 13 Jan 2023 20:07:54 -0700 Subject: hstow: disjoin_hstow_file: skip blank lines --- bin/hstow | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/hstow') 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 } -- cgit v1.2.3