From 7276d0213fd26ee68b62b84080261e29512871e9 Mon Sep 17 00:00:00 2001 From: Lyndon Brown Date: Sun, 3 May 2020 01:25:55 +0100 Subject: fix usage/help/man bugs - the definition of $PROGRAM as used in $USAGE strings defined in each script has been broken for a long time, being simply "lb" when it needs to be "lb COMMAND". - `config` changed $PROGRAM to "lb config" thus its output was correct in this regard unlike everything else, but with the switch to a more "intelligent" `Man()` function recently, it means that instead of `man lb config`, what was actually run was `man lb config config`, which displayed the manpage, then on exiting with `q`, it showed some sort of index line todo with a "config" search (no exact manpage match?), for which you had to enter `ctrl+c` to get rid of. this revises things to fix the issues, minimising change by changing $PROGRAM to "lb COMMAND", with the frontend overriding this. Gbp-Dch: Ignore --- frontend/lb | 1 + 1 file changed, 1 insertion(+) (limited to 'frontend/lb') diff --git a/frontend/lb b/frontend/lb index dc3c93395..4617e3e5a 100755 --- a/frontend/lb +++ b/frontend/lb @@ -15,6 +15,7 @@ set -e [ -n "${LIVE_BUILD}" ] && [ -e "${LIVE_BUILD}/scripts/build.sh" ] && . "${LIVE_BUILD}/scripts/build.sh" || . /usr/lib/live/build.sh # Setting static variables +PROGRAM="${FRONTEND}" DESCRIPTION="Utility to build live systems" HELP="" USAGE="lb {clean|config|build}" -- cgit v1.2.3