use 'test -n "..."' instead of 'test "..."'; when "..." expands to '-v'
[util-vserver.git] / util-vserver / scripts / vserver-setup.functions
index 2a3241d..431c638 100644 (file)
@@ -126,7 +126,7 @@ function _setup_writeInterface
     _setup_writeSingleOption "$mask"   $d/mask
     _setup_writeSingleOption "$prefix" $d/prefix
 
-    test "$dev" -o "$SETUP_NETDEV" || \
+    test -n "$dev" -o -n "$SETUP_NETDEV" || \
        echo $"No device specified for interface '$idx'; do not forget to set the 'nodev' option" >&2
 }