about summary refs log tree commit diff
path: root/pkgs/tools/security/passage/darwin-getopt-path.patch
blob: 0225f05c19d02507a9d384ea436f27ec76a612a1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/platform/darwin.sh b/src/platform/darwin.sh
index 9a1fda8..4f7ce3d 100644
--- a/src/platform/darwin.sh
+++ b/src/platform/darwin.sh
@@ -39,6 +39,6 @@ qrcode() {
 	fi
 }
 
-GETOPT="$({ test -x /usr/local/opt/gnu-getopt/bin/getopt && echo /usr/local/opt/gnu-getopt; } || brew --prefix gnu-getopt 2>/dev/null || { command -v port &>/dev/null && echo /opt/local; } || echo /usr/local)/bin/getopt"
+GETOPT="@getopt@/bin/getopt"
 SHRED="srm -f -z"
 BASE64="openssl base64"