Skip to content

Commit 78ae402

Browse files
authored
Merge pull request #13 from Walkbase/bugfix-reading-secret-paths
Fix reading secrets when key is both a leaf and a subpath
2 parents 51022fd + 85291ed commit 78ae402

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmd/export.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@ func accumulate(acc *[]string, v vault.Vault, basep string, accump string) {
103103
return
104104
}
105105
for _, k := range res {
106+
if !strings.HasSuffix(k, "/") {
107+
*acc = append(*acc, path.Join(basep, k))
108+
continue
109+
}
106110
accumulate(acc, v, path.Join(basep, k), path.Join(accump, k))
107111
}
108112
}

0 commit comments

Comments
 (0)