From: W. Trevor King Date: Tue, 23 Mar 2010 23:19:54 +0000 (-0400) Subject: Use ${PROG} instead of $0 in sysresccd-usbstick X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b97740d45a2f6bcc3fccc39bb807343c5f275e96;p=systemrescuecd.git Use ${PROG} instead of $0 in sysresccd-usbstick Also remove redundant "exit 1" in an error message after call to help_readman(). --- diff --git a/portage-overlay/sys-apps/sysresccd-scripts/files/sysresccd-usbstick b/portage-overlay/sys-apps/sysresccd-scripts/files/sysresccd-usbstick index 947bda8..fb9439e 100755 --- a/portage-overlay/sys-apps/sysresccd-scripts/files/sysresccd-usbstick +++ b/portage-overlay/sys-apps/sysresccd-scripts/files/sysresccd-usbstick @@ -498,13 +498,12 @@ shift if [ "$(whoami)" != "root" ] then - help_readman "$0: This script requires root privileges to operate." + help_readman "${PROG}: This script requires root privileges to operate." fi if ! cat /proc/mounts | awk '{print $2}' | grep -q -F '/memory' then - help_readman "$0: This script must be executed from SystemRescueCd" - exit 1 + help_readman "${PROG}: This script must be executed from SystemRescueCd" fi case "${COMMAND}" in