Allow for homebrew prefix location to handle both x64 and arm macs (#8593)

Allow for Homebrew prefix location to handle both x64 and arm macs
This commit is contained in:
Vijay Aravamudhan
2022-10-18 01:51:50 +05:30
committed by GitHub
parent 56307e6cad
commit f7735afcd6
3 changed files with 10 additions and 3 deletions

View File

@@ -5,7 +5,7 @@
: ${KDBX_SEARCH:=~/.KeePass/*.kdbx}
PROG=$(basename "$0")
KeePassXC=$(ls -f {/usr/local,/Applications}/KeePassXC.app/Contents/MacOS/KeePassXC 2>/dev/null | head -1)
KeePassXC=$(ls -f {/usr/local,/opt/homebrew,/Applications}/KeePassXC.app/Contents/MacOS/KeePassXC 2>/dev/null | head -1)
daemon_main() {
declare -A DBs