]> xenbits.xensource.com Git - osstest/rumprun.git/commitdiff
rumprun: fix -W t,inet,dhcp under set -u
authorAntti Kantee <pooka@iki.fi>
Wed, 4 Nov 2015 13:50:02 +0000 (13:50 +0000)
committerAntti Kantee <pooka@iki.fi>
Wed, 4 Nov 2015 13:50:02 +0000 (13:50 +0000)
app-tools/rumprun

index 8809cebc14d3482e2c44b4a32fa218e8634979c4..0f675a892a64c3869f171744890240a7ec57e25d 100644 (file)
@@ -273,7 +273,7 @@ json_store_netspec ()
        json_append_ln  '"type":        "'${iftype}'"'
        json_append_ln  '"method":      "'${ifmethod}'"'
 
-       [ -n "${ifaddr}" ] || { json_finalize_block ; return ; }
+       [ -n "${ifaddr:-}" ] || { json_finalize_block ; return ; }
 
        json_append_ln  '"addr":        "'${ifaddr}'"'
        json_append_ln  '"mask":        "'${ifmask}'"'