From 62a36dfd87cef0b571cce512ec9fc9c30e05ec8a Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 16 Dec 2018 03:52:31 -0500 Subject: cfgtest.sh: avoid trailing white space at end-of-line with empty variables. --- sofort/cfgtest.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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" \ -- cgit v1.2.3