bump :)

-------- Forwarded Message --------
Subject:        [pass] [improvement] show: only show actual password entries
Date:   Fri, 17 Oct 2014 23:22:36 +0300
From:   George Angelopoulos <[email protected]>
To:     [email protected]



Password stores might contain things that are not password entries -
for example, a README.md file, if uploaded to a service like GitLab
and used by multiple people. Such a file has no reason to be shown
by "pass show".




>From d15919ac4dfead83872dc86f9f3fc173ae0d6751 Mon Sep 17 00:00:00 2001
From: George Angelopoulos <[email protected]>
Date: Fri, 17 Oct 2014 23:16:47 +0300
Subject: [PATCH] show: only show .gpg files

Password stores might contain things that are not password entries -
for example, a README.md file, if uploaded to a service like GitLab
and used by multiple people. Such a file has no reason to be shown
by "pass show".
---
 src/password-store.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/password-store.sh b/src/password-store.sh
index c85cc33..1085cee 100755
--- a/src/password-store.sh
+++ b/src/password-store.sh
@@ -332,7 +332,7 @@ cmd_show() {
 		else
 			echo "${path%\/}"
 		fi
-		tree -C -l --noreport "$PREFIX/$path" | tail -n +2 | sed 's/\.gpg$//'
+		tree -C -l --noreport "$PREFIX/$path" -P '*.gpg' | tail -n +2 | sed 's/\.gpg$//'
 	elif [[ -z $path ]]; then
 		die "Error: password store is empty. Try \"pass init\"."
 	else
-- 
2.1.2


_______________________________________________
Password-Store mailing list
[email protected]
http://lists.zx2c4.com/mailman/listinfo/password-store

_______________________________________________
Password-Store mailing list
[email protected]
http://lists.zx2c4.com/mailman/listinfo/password-store

Reply via email to