diff options
author | Alexander Hall <halex@cvs.openbsd.org> | 2012-07-13 12:00:49 +0000 |
---|---|---|
committer | Alexander Hall <halex@cvs.openbsd.org> | 2012-07-13 12:00:49 +0000 |
commit | b1e16317d3f5d41dc96034cfcb77f29527f08ad0 (patch) | |
tree | 335a1f1150cad78c934d3e824b07eb1eb63560fa /distrib/loongson/ramdisk/install.md | |
parent | d5682b5365c31c5f8bdffd7309f3e48a32684ab8 (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.md | 6 |
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 |