summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Peichaer <rpe@cvs.openbsd.org>2012-09-28 16:23:26 +0000
committerRobert Peichaer <rpe@cvs.openbsd.org>2012-09-28 16:23:26 +0000
commitbe1316064618d57f08cfffbca659534de17a5f33 (patch)
tree29b06c938cfdb023548b98f39ee179d26f56292e
parentbc9b933a32053302d09471e38ae992a47a2c12f1 (diff)
consistently use [[ ]] for tests
ok halex@
-rw-r--r--distrib/miniroot/install.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/distrib/miniroot/install.sh b/distrib/miniroot/install.sh
index 96942fcc96c..0b32a561b8e 100644
--- a/distrib/miniroot/install.sh
+++ b/distrib/miniroot/install.sh
@@ -1,5 +1,5 @@
#!/bin/ksh
-# $OpenBSD: install.sh,v 1.230 2012/09/28 16:19:05 rpe Exp $
+# $OpenBSD: install.sh,v 1.231 2012/09/28 16:23:25 rpe Exp $
# $NetBSD: install.sh,v 1.5.2.8 1996/08/27 18:15:05 gwr Exp $
#
# Copyright (c) 1997-2009 Todd Miller, Theo de Raadt, Ken Westerback
@@ -239,7 +239,7 @@ mv /tmp/ttys /mnt/etc/ttys
echo -n "Saving configuration files..."
# Save any leases obtained during install.
-(cd /var/db; [ -f dhclient.leases ] && mv dhclient.leases /mnt/var/db/. )
+(cd /var/db; [[ -f dhclient.leases ]] && mv dhclient.leases /mnt/var/db/. )
# Move configuration files from /tmp to /mnt/etc.
hostname >/tmp/myname