summaryrefslogtreecommitdiff
path: root/scripts/build/config
diff options
context:
space:
mode:
authorLyndon Brown <jnqnfe@gmail.com>2020-05-03 01:25:55 +0100
committerLyndon Brown <jnqnfe@gmail.com>2020-05-03 01:38:17 +0100
commit7276d0213fd26ee68b62b84080261e29512871e9 (patch)
tree1854ca370feb001251d286403b5703f2e52ed2a6 /scripts/build/config
parent96c797773201f60badcc7dac8b563f1dcf7ef349 (diff)
downloadvyos-live-build-7276d0213fd26ee68b62b84080261e29512871e9.tar.gz
vyos-live-build-7276d0213fd26ee68b62b84080261e29512871e9.zip
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
Diffstat (limited to 'scripts/build/config')
-rwxr-xr-xscripts/build/config1
1 files changed, 0 insertions, 1 deletions
diff --git a/scripts/build/config b/scripts/build/config
index 426838f9f..d2fe66bcf 100755
--- a/scripts/build/config
+++ b/scripts/build/config
@@ -15,7 +15,6 @@ set -e
[ -e "${LIVE_BUILD}/scripts/build.sh" ] && . "${LIVE_BUILD}/scripts/build.sh" || . /usr/lib/live/build.sh
# Setting static variables
-PROGRAM="lb config"
DESCRIPTION="Create configuration for live-build(7)"
USAGE="${PROGRAM} [--apt apt|apt-get|aptitude]\n\
\t [--apt-ftp-proxy URL]\n\