commit d97313ca3297f65a246093c61bd207ec7bd99b85
parent 79ab27e1622220001dc73b19a2e80df465958448
Author: Jason A. Donenfeld <Jason@zx2c4.com>
Date: Fri, 5 Oct 2012 21:16:52 +0200
Trim trailing slash in tree display.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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