Skip to content

Commit

Permalink
Fix 2.2 listing
Browse files Browse the repository at this point in the history
  • Loading branch information
Angoll committed Oct 2, 2021
1 parent b7d88d8 commit 81acac0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Binary file not shown.
2 changes: 1 addition & 1 deletion scripts/getPassword.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export PATH='/usr/local/bin/:/usr/bin:/Applications/KeePassXC.app/Contents/MacOS/'
export PATH='/usr/local/bin/:/usr/bin:/Applications/KeePassXC.app/Contents/MacOS/:${PATH}'

keePassKeyFile=""
if [[ ! -z ${keyfile} ]]; then
Expand Down
6 changes: 3 additions & 3 deletions scripts/listDatabase.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export PATH='/usr/local/bin/:/usr/bin:/Applications/KeePassXC.app/Contents/MacOS/'
export PATH='/usr/local/bin/:/usr/bin:/Applications/KeePassXC.app/Contents/MacOS/:${PATH}'


useKeePassKeyFile=""
Expand All @@ -9,13 +9,13 @@ fi

function get_keys() {
security find-generic-password -a $(id -un) -c 'kpas' -C 'kpas' -s "${keychainItem}" -w "${keychain}" |\
keepassxc-cli locate ${useKeePassKeyFile} "$database" {query}
keepassxc-cli locate ${useKeePassKeyFile} "$database" / -q
}

function get_errorInfo {
exec 3<&1
security find-generic-password -a $(id -un) -c 'kpas' -C 'kpas' -s "${keychainItem}" -w "${keychain}" 2>&3 |\
keepassxc-cli locate ${useKeePassKeyFile} "$database" {query} 2>&3
keepassxc-cli locate ${useKeePassKeyFile} "$database" / -q 2>&3
exec 3>&-
}

Expand Down

0 comments on commit 81acac0

Please sign in to comment.