diff mbox

[1/2] ntp: fix undefined variable in error print

Message ID 1408497647-2258-1-git-send-email-danomimanchego123@gmail.com
State Accepted
Headers show

Commit Message

Danomi Manchego Aug. 20, 2014, 1:20 a.m. UTC
The variable "$SCRIPTNAME" is undefined; replace with "$0".

Signed-off-by: Danomi Manchego <danomimanchego123@gmail.com>
---
 package/ntp/S49ntp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Thomas Petazzoni Aug. 21, 2014, 1:23 p.m. UTC | #1
Dear Danomi Manchego,

On Tue, 19 Aug 2014 21:20:46 -0400, Danomi Manchego wrote:
> The variable "$SCRIPTNAME" is undefined; replace with "$0".
> 
> Signed-off-by: Danomi Manchego <danomimanchego123@gmail.com>
> ---
>  package/ntp/S49ntp |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

This patch, and the similar patch for tvheadend, applied.

Thanks!

Thomas
diff mbox

Patch

diff --git a/package/ntp/S49ntp b/package/ntp/S49ntp
index 6f9ec75..5721f59 100755
--- a/package/ntp/S49ntp
+++ b/package/ntp/S49ntp
@@ -36,7 +36,7 @@  case "$1" in
 	sleep 1
 	$0 start
 	;;
-  *) echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
+  *) echo "Usage: $0 {start|stop|restart|reload|force-reload}" >&2
 	exit 1
 	;;
 esac