summaryrefslogtreecommitdiff
path: root/distrib/armv7/ramdisk/install.md
diff options
context:
space:
mode:
authorRobert Peichaer <rpe@cvs.openbsd.org>2015-06-02 19:39:20 +0000
committerRobert Peichaer <rpe@cvs.openbsd.org>2015-06-02 19:39:20 +0000
commite511b7d80a838346221a9c280a244c05a2fd7bbf (patch)
tree00099c511100d96a8c9621bc4f53c903e5770688 /distrib/armv7/ramdisk/install.md
parent792bd11ffd6cc003ac340456d78bc92af70e4902 (diff)
Replace
[[ -n $(foo | grep 'bar') ]] with foo | grep -q 'bar' OK halex@ krw@
Diffstat (limited to 'distrib/armv7/ramdisk/install.md')
-rw-r--r--distrib/armv7/ramdisk/install.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/distrib/armv7/ramdisk/install.md b/distrib/armv7/ramdisk/install.md
index a70e1c02d9b..1d5e2a2f50b 100644
--- a/distrib/armv7/ramdisk/install.md
+++ b/distrib/armv7/ramdisk/install.md
@@ -1,4 +1,4 @@
-# $OpenBSD: install.md,v 1.10 2015/06/02 01:48:25 jsg Exp $
+# $OpenBSD: install.md,v 1.11 2015/06/02 19:39:19 rpe Exp $
#
#
# Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -136,7 +136,7 @@ md_prep_fdisk() {
while :; do
_d=whole
- if [[ -n $(fdisk $_disk | grep 'Signature: 0xAA55') ]]; then
+ if fdisk $_disk | grep -q 'Signature: 0xAA55'; then
fdisk $_disk
else
echo "MBR has invalid signature; not showing it."
@@ -180,7 +180,7 @@ at least 16MB and be the first 'MSDOS' partition on the disk.
$(fdisk ${_disk})
__EOT
fdisk -e ${_disk}
- [[ -n $(fdisk $_disk | grep ' A6 ') ]] && return
+ fdisk $_disk | grep -q ' A6 ' && return
echo No OpenBSD partition in MBR, try again. ;;
o*|O*) return ;;
esac