From c8ab67cad852ec2457adf15bf7883c2f5cdb1b00 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 10 May 2009 23:27:43 +0200 Subject: tftp: do not risk invoking Sorcerer's Apprentice syndrome examples/udhcp/simple.script: fix incorrect test for $1 Signed-off-by: Denys Vlasenko --- examples/udhcp/simple.script | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/udhcp/simple.script b/examples/udhcp/simple.script index abf1b6f..40ee738 100644 --- a/examples/udhcp/simple.script +++ b/examples/udhcp/simple.script @@ -3,7 +3,7 @@ RESOLV_CONF="/etc/resolv.conf" -[ -n "$1" ] || echo "Error: should be called from udhcpc" && exit 1 +[ -n "$1" ] || { echo "Error: should be called from udhcpc"; exit 1; } NETMASK="" [ -n "$subnet" ] && NETMASK="netmask $subnet" -- cgit v1.1