diff options
author | Lyndon Brown <jnqnfe@gmail.com> | 2020-02-21 22:23:40 +0000 |
---|---|---|
committer | Luca Boccassi <bluca@debian.org> | 2020-03-05 20:37:57 +0000 |
commit | 0fc28da947eb48464ba01b59af588dd379ecabb2 (patch) | |
tree | da5cc27a6634a914104562d2771281e7dd2d610f /functions | |
parent | d0eb72a5efd0b1cdbd22f3b5afa3cf16a731b482 (diff) | |
download | vyos-live-build-0fc28da947eb48464ba01b59af588dd379ecabb2.tar.gz vyos-live-build-0fc28da947eb48464ba01b59af588dd379ecabb2.zip |
help/usage: fix incorrect program command
Closes: #952884
Diffstat (limited to 'functions')
-rwxr-xr-x | functions/common.sh | 3 | ||||
-rwxr-xr-x | functions/help.sh | 2 | ||||
-rwxr-xr-x | functions/usage.sh | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/functions/common.sh b/functions/common.sh index 2edebc5da..6ca94df55 100755 --- a/functions/common.sh +++ b/functions/common.sh @@ -8,7 +8,8 @@ ## under certain conditions; see COPYING for details. -PROGRAM="live-build" +PROGRAM_NAME="live-build" +PROGRAM="lb" VERSION="$(if [ -e ${LIVE_BUILD}/VERSION ]; then cat ${LIVE_BUILD}/VERSION; else cat /usr/share/live/build/VERSION; fi)" CONFIG_VERSION="$(echo ${VERSION} | awk -F- '{ print $1 }')" diff --git a/functions/help.sh b/functions/help.sh index 5e0881795..78fa24b60 100755 --- a/functions/help.sh +++ b/functions/help.sh @@ -10,7 +10,7 @@ Help () { - printf "%s - %s\n\n" "${PROGRAM}" "${DESCRIPTION}" + printf "%s - %s\n\n" "${PROGRAM_NAME}" "${DESCRIPTION}" printf "Usage:\n\n" if [ -n "${USAGE}" ] diff --git a/functions/usage.sh b/functions/usage.sh index 038271107..8e970ca44 100755 --- a/functions/usage.sh +++ b/functions/usage.sh @@ -10,7 +10,7 @@ Usage () { - printf "%s - %s\n\n" "${PROGRAM}" "${DESCRIPTION}" + printf "%s - %s\n\n" "${PROGRAM_NAME}" "${DESCRIPTION}" printf "Usage:\n\n" if [ -n "${USAGE}" ] |