aboutsummaryrefslogtreecommitdiff
path: root/tessen
diff options
context:
space:
mode:
authorAyush Agarwal <ayushnix@fastmail.com>2022-03-21 20:00:06 +0530
committerAyush Agarwal <ayushnix@fastmail.com>2022-03-21 20:00:06 +0530
commitbffbb2dff5fc1b41084ca548f16d5d7a4fec4738 (patch)
tree34c4d6d166b93ba09c79cf181f35f50b27cebdcc /tessen
parente4ec6ccd52c8ebbfd6a918e384540175592c1709 (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-xtessen3
1 files changed, 2 insertions, 1 deletions
diff --git a/tessen b/tessen
index 7047f05..4610043 100755
--- a/tessen
+++ b/tessen
@@ -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