From: Roy Marples Date: Fri, 23 May 2008 06:36:57 +0000 (+0000) Subject: Fix shell logic X-Git-Tag: v4.0.2~343 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71e0979efc6ed661581d7eeb844fc243401b2a50;p=thirdparty%2Fdhcpcd.git Fix shell logic --- diff --git a/hook.d/14-lookup-hostname.sh b/hook.d/14-lookup-hostname.sh index 6818c392..bcb4a1f2 100644 --- a/hook.d/14-lookup-hostname.sh +++ b/hook.d/14-lookup-hostname.sh @@ -23,7 +23,7 @@ lookup_hostname() set_hostname() { - if [ -z "${new_host_name}" ] + if [ -z "${new_host_name}" ]; then export new_host_name="$(lookup_hostname)" fi }