summaryrefslogtreecommitdiff
path: root/distrib/loongson/ramdisk/install.md
diff options
context:
space:
mode:
authorAlexander Hall <halex@cvs.openbsd.org>2012-07-13 12:00:49 +0000
committerAlexander Hall <halex@cvs.openbsd.org>2012-07-13 12:00:49 +0000
commitb1e16317d3f5d41dc96034cfcb77f29527f08ad0 (patch)
tree335a1f1150cad78c934d3e824b07eb1eb63560fa /distrib/loongson/ramdisk/install.md
parentd5682b5365c31c5f8bdffd7309f3e48a32684ab8 (diff)
{ ...; } is more proper than ( ... ) since the latter spawns a subshell
while the former does not pointed out by and ok naddy@
Diffstat (limited to 'distrib/loongson/ramdisk/install.md')
-rw-r--r--distrib/loongson/ramdisk/install.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/distrib/loongson/ramdisk/install.md b/distrib/loongson/ramdisk/install.md
index a108bb9d119..22cb8b62941 100644
--- a/distrib/loongson/ramdisk/install.md
+++ b/distrib/loongson/ramdisk/install.md
@@ -1,4 +1,4 @@
-# $OpenBSD: install.md,v 1.9 2012/07/13 09:23:11 halex Exp $
+# $OpenBSD: install.md,v 1.10 2012/07/13 12:00:48 halex Exp $
#
#
# Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -38,8 +38,8 @@ md_installboot() {
if mount -t ext2fs /dev/${_disk}i /mnt2 &&
mkdir -p /mnt2/boot &&
cp /usr/mdec/boot /mnt2/boot &&
- ( [[ $(sysctl -n hw.product) != Gdium ]] ||
- cp /mnt/bsd /mnt2/boot/bsd ); then
+ { [[ $(sysctl -n hw.product) != Gdium ]] ||
+ cp /mnt/bsd /mnt2/boot/bsd; }; then
umount /mnt2
return
fi