]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
make.sh: Improve formatting of options
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 28 Nov 2017 17:36:07 +0000 (17:36 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 28 Nov 2017 17:36:07 +0000 (17:36 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
make.sh

diff --git a/make.sh b/make.sh
index 8ef205668c4387ece19edef9dc76a59414e983d0..d8037a00acdae33bffecb637788a9e18f913297e 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -322,12 +322,7 @@ print_package() {
        fi
 
        printf "%-$(( ${NAME_WIDTH} - 1 ))s " "${string}"
-
-       if [ -n "${options}" ]; then
-               printf "[ %-$(( ${OPTIONS_WIDTH} - 4 ))s ]" "${options}"
-       else
-               printf "%${OPTIONS_WIDTH}s" ""
-       fi
+       printf "%$(( ${OPTIONS_WIDTH} - 1 ))s " "${options}"
 }
 
 print_runtime() {