From bc199a73b68b9b31327afbb1c32ff82661bcccf5 Mon Sep 17 00:00:00 2001 From: Lyndon Brown Date: Fri, 6 Mar 2020 19:44:23 +0000 Subject: [PATCH] help/usage: fix output of `lb config --usage` broken by d0eb72a5efd0b1cdbd22f3b5afa3cf16a731b482 also, needed spaces before per-script output Gbp-Dch: Ignore --- functions/help.sh | 3 ++- functions/usage.sh | 3 ++- 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}"