check for zero length strings
authorMarc Fiuczynski <mef@cs.princeton.edu>
Thu, 24 Jan 2008 18:52:26 +0000 (18:52 +0000)
committerMarc Fiuczynski <mef@cs.princeton.edu>
Thu, 24 Jan 2008 18:52:26 +0000 (18:52 +0000)
system/selftest

index 02753ea..47b72f8 100755 (executable)
@@ -3,8 +3,8 @@
 SELF_HOST=$1
 SELF_IP=$2
 # all below addresses are those of the qemu host
-[ -n "$SELF_HOST" ] && SELF_HOST="selftest.$(hostname)"
-[ -n "$SELF_IP"   ] && SELF_IP="10.1.159.48"
+[ -z "$SELF_HOST" ] && SELF_HOST="selftest.$(hostname)"
+[ -z "$SELF_IP"   ] && SELF_IP="10.1.159.48"
 
 
 ####################################################