aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
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
parentDo not make commit with edit if password is unchanged. (diff)
downloadpassword-store-7d37a62180c8cbd3a99236f9d6e2cb2dd33a853a.tar.xz
password-store-7d37a62180c8cbd3a99236f9d6e2cb2dd33a853a.zip
darwin: Fix up order of operations.
Diffstat (limited to 'src')
-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"