From 0fc28da947eb48464ba01b59af588dd379ecabb2 Mon Sep 17 00:00:00 2001 From: Lyndon Brown Date: Fri, 21 Feb 2020 22:23:40 +0000 Subject: [PATCH] help/usage: fix incorrect program command Closes: #952884 --- functions/common.sh | 3 ++- functions/help.sh | 2 +- 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}" ]