changeset 883:c48fc63b7df7

Fix a [ -z $test ] that produced multiple words for the $test part, but didn't have "$test" in quotes. I'm not sure how that ever worked.
author Rob Landley <rob@landley.net>
date Wed, 11 Nov 2009 18:23:37 -0600
parents d81382a8bb66
children 96afbdffbf97
files sources/native/sbin/init.sh
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sources/native/sbin/init.sh	Tue Nov 10 18:54:52 2009 -0600
+++ b/sources/native/sbin/init.sh	Wed Nov 11 18:23:37 2009 -0600
@@ -65,7 +65,7 @@
 
 # If we're not PID 1, it's probably a chroot.
 else
-  [ ! -z $(grep "default for QEMU" /etc/resolv.conf) ] &&
+  [ ! -z "$(grep "default for QEMU" /etc/resolv.conf)" ] &&
     echo "nameserver 4.2.2.1" > /etc/resolv.conf
 
   # Switch to a shell with command history.