From 7d37a62180c8cbd3a99236f9d6e2cb2dd33a853a Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Tue, 23 Dec 2014 19:55:43 -0700 Subject: darwin: Fix up order of operations. --- src/platform/darwin.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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" -- cgit v1.2.3