help/usage: fix incorrect program command

Closes: #952884
This commit is contained in:
Lyndon Brown 2020-02-21 22:23:40 +00:00 committed by Luca Boccassi
parent d0eb72a5ef
commit 0fc28da947
3 changed files with 4 additions and 3 deletions

View File

@ -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 }')"

View File

@ -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}" ]

View File

@ -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}" ]