aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/password-store.sh
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/password-store.sh
parentupdate fish completion as well (diff)
downloadpassword-store-d97313ca3297f65a246093c61bd207ec7bd99b85.tar.xz
password-store-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