summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorLyndon Brown <jnqnfe@gmail.com>2020-03-06 19:44:23 +0000
committerLuca Boccassi <bluca@debian.org>2020-03-10 12:45:23 +0000
commitbc199a73b68b9b31327afbb1c32ff82661bcccf5 (patch)
tree5e76a908d435cf7ad6879f59ef6c6f4c6dcd06b0 /functions
parent4e45586daf646c884627793c086677cf1fdf1860 (diff)
downloadvyos-live-build-bc199a73b68b9b31327afbb1c32ff82661bcccf5.tar.gz
vyos-live-build-bc199a73b68b9b31327afbb1c32ff82661bcccf5.zip
help/usage: fix output of `lb config --usage`
broken by d0eb72a5efd0b1cdbd22f3b5afa3cf16a731b482 also, needed spaces before per-script output Gbp-Dch: Ignore
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/help.sh3
-rwxr-xr-xfunctions/usage.sh3
2 files changed, 4 insertions, 2 deletions
diff --git a/functions/help.sh b/functions/help.sh
index 78fa24b60..35051ab1f 100755
--- a/functions/help.sh
+++ b/functions/help.sh
@@ -15,7 +15,8 @@ Help ()
if [ -n "${USAGE}" ]
then
- printf "%s\n" "${USAGE}"
+ # printf without placeholder required here for correct \t and \n formatting of `lb config --usage`
+ printf " ${USAGE}\n"
fi
printf " %s [-h|--help]\n" "${PROGRAM}"
printf " %s [-u|--usage]\n" "${PROGRAM}"
diff --git a/functions/usage.sh b/functions/usage.sh
index 8e970ca44..06ad72132 100755
--- a/functions/usage.sh
+++ b/functions/usage.sh
@@ -15,7 +15,8 @@ Usage ()
if [ -n "${USAGE}" ]
then
- printf " %s\n" "${USAGE}"
+ # printf without placeholder required here for correct \t and \n formatting of `lb config --usage`
+ printf " ${USAGE}\n"
fi
printf " %s [-h|--help]\n" "${PROGRAM}"