diff options
author | Ayush Agarwal <ayushnix@fastmail.com> | 2022-03-21 20:00:06 +0530 |
---|---|---|
committer | Ayush Agarwal <ayushnix@fastmail.com> | 2022-03-21 20:00:06 +0530 |
commit | bffbb2dff5fc1b41084ca548f16d5d7a4fec4738 (patch) | |
tree | 34c4d6d166b93ba09c79cf181f35f50b27cebdcc /tessen | |
parent | e4ec6ccd52c8ebbfd6a918e384540175592c1709 (diff) |
fix: prefix the mount name to the list of files
shoud've caught this bug earlier, this should fix #24
Diffstat (limited to 'tessen')
-rwxr-xr-x | tessen | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -91,7 +91,8 @@ get_gopass_files() { if [[ -d ${line#*=> } ]]; then path_files=("${line#*=> }"/**/*.gpg) path_files=("${path_files[@]#"${line#*=> }"/}") - path_files=("$mount_name"/"${path_files[@]%.gpg}") + path_files=("${path_files[@]%.gpg}") + path_files=("${path_files[@]/#/"$mount_name/"}") for file in "${path_files[@]}"; do tmp_gopass_files["$file"]="${line#*=> }" done |