From f3f833bce5a5cec89f27e5f6e25c6ae96daefb78 Mon Sep 17 00:00:00 2001 From: midipix Date: Dec 16 2018 09:01:21 +0000 Subject: cfgtest.sh: avoid trailing white space at end-of-line with empty variables. --- 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" \