File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ parse_args __DESCRIPTION "$DESCRIPTION" __USAGE "$USAGE" "$@"
18
18
19
19
browser_cmd=" ${KW_ARGS['-b']-} "
20
20
browser_cmd=" ${KW_ARGS['--browser']-${browser_cmd} } "
21
+ keepass_cli=" ${KW_ARGS['-c']-keepassxc.cli} "
22
+ keepass_cli=" ${KW_ARGS['--cli']-$keepass_cli } }"
21
23
keepass_group=" ${KW_ARGS['--group']-${KW_ARGS['-g']} } "
22
24
23
25
set_trap 2
@@ -52,7 +54,7 @@ echo ""
52
54
while read -r -u 3 entry
53
55
do
54
56
url=" $( echo " $pw " \
55
- | keepassxc.cli show -a URL ~ /keepass_backup/personal_accounts.kdbx " $entry " \
57
+ | " $keepass_cli " show -a URL " ${NAMED_ARGS['keepass-db']} " " $entry " \
56
58
2> /dev/null || true) "
57
59
if [[ -z " $url " ]]
58
60
then
67
69
read -s
68
70
fi
69
71
done 3< <( echo " $pw " \
70
- | keepassxc.cli ls -Rf ~ /keepass_backup/personal_accounts.kdbx " ${keepass_group-/ } " \
72
+ | " $keepass_cli " ls -Rf " ${NAMED_ARGS['keepass-db']} " " ${keepass_group-/ } " \
71
73
2> /dev/null)
72
74
You can’t perform that action at this time.
0 commit comments