aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorGravatar √Čtienne Deparis 2017-02-06 19:24:05 +0100
committerGravatar √Čtienne Deparis 2018-08-09 19:03:46 +0200
commita57514c1d2423e4aaceaab2661a91c05e1ad61ee (patch)
tree7dcf96b81b60fb708093b508f411c02644a6b322
parentff175677136f1fdfb40fbb3bf1efbb3248a9ea20 (diff)
downloadpassword-store-a57514c1d2423e4aaceaab2661a91c05e1ad61ee.tar.gz
password-store-a57514c1d2423e4aaceaab2661a91c05e1ad61ee.tar.xz
password-store-a57514c1d2423e4aaceaab2661a91c05e1ad61ee.zip
fix: Update flat find output
-rwxr-xr-xsrc/password-store.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/password-store.sh b/src/password-store.sh
index 9076381..7f7fde9 100755
--- a/src/password-store.sh
+++ b/src/password-store.sh
@@ -417,7 +417,7 @@ cmd_find() {
if [[ $flat -eq 1 ]]; then
local terms=$(printf '%s[^/]*\|' "$@")
terms=${terms%"\|"}
- local allitems=($(find $PREFIX -type f -iregex ".*/[^/]*\(${terms}\)" | sed "s|$PREFIX/||"))
+ local allitems=($(find $PREFIX -type f -iregex ".*\(${terms}\).*" | sed "s|$PREFIX/||"))
local last_match=$((${#allitems[@]} - 1))
for item in $(seq 0 $last_match); do
local possible_pass=${allitems[item]}