68a078 cfgtest.sh: avoid trailing white space at end-of-line with empty variables.

Authored and Committed by midipix 6 years ago
    cfgtest.sh: avoid trailing white space at end-of-line with empty variables.
    
        
file modified
+3 -1
sofort/cfgtest.sh CHANGED
@@ -57,7 +57,9 @@ cfgtest_makevar_append()
57
57
mb_internal_str='+='
58
58
59
59
for mb_internal_arg ; do
60
- mb_internal_str="$mb_internal_str $mb_internal_arg"
60
+ if ! [ -z "$mb_internal_arg" ]; then
61
+ mb_internal_str="$mb_internal_str $mb_internal_arg"
62
+ fi
61
63
done
62
64
63
65
printf '%-24s%s\n' "$mb_cfgtest_makevar" "$mb_internal_str" \