m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src/platform
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2014-12-23 19:55:43 -0700
committerJason A. Donenfeld <Jason@zx2c4.com>2014-12-23 19:55:43 -0700
commit7d37a62180c8cbd3a99236f9d6e2cb2dd33a853a (patch)
treef920ad0f6fc0c0352d8a161c5262c581ef3fa5ab /src/platform
parentd28575ddcaa6ef2420507416d64dff01e402a5c5 (diff)
darwin: Fix up order of operations.
Diffstat (limited to 'src/platform')
-rw-r--r--src/platform/darwin.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/platform/darwin.sh b/src/platform/darwin.sh
index ce4bb29..7b028f3 100644
--- a/src/platform/darwin.sh
+++ b/src/platform/darwin.sh
@@ -31,5 +31,5 @@ tmpdir() {
mount -t hfs -o noatime -o nobrowse "$DARWIN_RAMDISK_DEV" "$SECURE_TMPDIR" || die "Error: could not mount filesystem on ramdisk."
}
-GETOPT="$(brew --prefix gnu-getopt 2>/dev/null || which port 2>/dev/null && echo /opt/local || echo /usr/local)/bin/getopt"
+GETOPT="$(brew --prefix gnu-getopt 2>/dev/null || { which port &>/dev/null && echo /opt/local; } || echo /usr/local)/bin/getopt"
SHRED="srm -f -z"