Use ${PROG} instead of $0 in sysresccd-usbstick
authorW. Trevor King <wking@drexel.edu>
Tue, 23 Mar 2010 23:19:54 +0000 (19:19 -0400)
committerW. Trevor King <wking@drexel.edu>
Tue, 23 Mar 2010 23:19:54 +0000 (19:19 -0400)
Also remove redundant "exit 1" in an error message after call to
help_readman().

portage-overlay/sys-apps/sysresccd-scripts/files/sysresccd-usbstick

index 947bda8..fb9439e 100755 (executable)
@@ -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