summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-12-16 03:52:31 -0500
committermidipix <writeonce@midipix.org>2018-12-18 20:38:39 -0500
commit62a36dfd87cef0b571cce512ec9fc9c30e05ec8a (patch)
treed7c8ae6f26994949af020451b0a6989697745148
parent84ca86ba85ae6f789cc4cedeae82db90915e953b (diff)
downloadsbpython3-62a36dfd87cef0b571cce512ec9fc9c30e05ec8a.tar.bz2
sbpython3-62a36dfd87cef0b571cce512ec9fc9c30e05ec8a.tar.xz
cfgtest.sh: avoid trailing white space at end-of-line with empty variables.
-rw-r--r--sofort/cfgtest.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/sofort/cfgtest.sh b/sofort/cfgtest.sh
index a0dcc64..bd661c0 100644
--- a/sofort/cfgtest.sh
+++ b/sofort/cfgtest.sh
@@ -57,7 +57,9 @@ cfgtest_makevar_append()
mb_internal_str='+='
for mb_internal_arg ; do
- mb_internal_str="$mb_internal_str $mb_internal_arg"
+ if ! [ -z "$mb_internal_arg" ]; then
+ mb_internal_str="$mb_internal_str $mb_internal_arg"
+ fi
done
printf '%-24s%s\n' "$mb_cfgtest_makevar" "$mb_internal_str" \