diff options
author | Robert Peichaer <rpe@cvs.openbsd.org> | 2015-06-02 19:39:20 +0000 |
---|---|---|
committer | Robert Peichaer <rpe@cvs.openbsd.org> | 2015-06-02 19:39:20 +0000 |
commit | e511b7d80a838346221a9c280a244c05a2fd7bbf (patch) | |
tree | 00099c511100d96a8c9621bc4f53c903e5770688 /distrib/octeon | |
parent | 792bd11ffd6cc003ac340456d78bc92af70e4902 (diff) |
Replace
[[ -n $(foo | grep 'bar') ]]
with
foo | grep -q 'bar'
OK halex@ krw@
Diffstat (limited to 'distrib/octeon')
-rw-r--r-- | distrib/octeon/ramdisk/install.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/distrib/octeon/ramdisk/install.md b/distrib/octeon/ramdisk/install.md index 01739ba2d41..3ab20b7a3af 100644 --- a/distrib/octeon/ramdisk/install.md +++ b/distrib/octeon/ramdisk/install.md @@ -1,4 +1,4 @@ -# $OpenBSD: install.md,v 1.8 2015/05/31 19:40:10 rpe Exp $ +# $OpenBSD: install.md,v 1.9 2015/06/02 19:39:19 rpe Exp $ # # # Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -53,9 +53,9 @@ 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 - if [[ -n $(fdisk $_disk | grep '^..: A6 ') ]]; then + if fdisk $_disk | grep -q '^..: A6 '; then _q=", use the (O)penBSD area," _d=OpenBSD fi @@ -101,7 +101,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 |