]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix shell logic
authorRoy Marples <roy@marples.name>
Fri, 23 May 2008 06:36:57 +0000 (06:36 +0000)
committerRoy Marples <roy@marples.name>
Fri, 23 May 2008 06:36:57 +0000 (06:36 +0000)
hook.d/14-lookup-hostname.sh

index 6818c39223ac5c80f58a11f0bbf97bc29c8a5285..bcb4a1f29ac50e7326c66ff94353e934cbc6213f 100644 (file)
@@ -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
 }