From d97313ca3297f65a246093c61bd207ec7bd99b85 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Fri, 5 Oct 2012 21:16:52 +0200 Subject: Trim trailing slash in tree display. --- src/password-store.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3