summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2012-10-05 21:16:52 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2012-10-05 21:17:11 +0200
commitd97313ca3297f65a246093c61bd207ec7bd99b85 (patch)
treeeea7154f2c4fbacbacd8e233a5798bbd8690041f /src
parent79ab27e1622220001dc73b19a2e80df465958448 (diff)
downloadpass-d97313ca3297f65a246093c61bd207ec7bd99b85.tar.gz
pass-d97313ca3297f65a246093c61bd207ec7bd99b85.tar.bz2
pass-d97313ca3297f65a246093c61bd207ec7bd99b85.zip
Trim trailing slash in tree display.
Diffstat (limited to '')
-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 8afc67e..55ed86e 100755
--- a/src/password-store.sh
+++ b/src/password-store.sh
@@ -211,7 +211,7 @@ case "$command" in
if [[ -z $path ]]; then
echo "Password Store"
else
- echo $path
+ echo "${path%\/}"
fi
tree --noreport "$PREFIX/$path" | tail -n +2 | sed 's/\(.*\)\.gpg$/\1/'
else