diff options
author | 2012-07-13 12:00:48 +0000 | |
---|---|---|
committer | 2012-07-13 12:00:48 +0000 | |
commit | 03d9104b4d09e29f9d8d2f75e7a83a7a9312c0b5 (patch) | |
tree | 8be5bdd3135d64128b0db462c6883a26c2a5c63c | |
parent | move stuff around some more, do not load link parts unless we are actually (diff) | |
download | wireguard-openbsd-03d9104b4d09e29f9d8d2f75e7a83a7a9312c0b5.tar.xz wireguard-openbsd-03d9104b4d09e29f9d8d2f75e7a83a7a9312c0b5.zip |
{ ...; } is more proper than ( ... ) since the latter spawns a subshell
while the former does not
pointed out by and ok naddy@
-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 |