aboutsummaryrefslogtreecommitdiff
path: root/pw
diff options
context:
space:
mode:
authorAnirudh Oppiliappan <x@icyphox.sh>2019-11-17 16:46:58 +0530
committerAnirudh Oppiliappan <x@icyphox.sh>2019-11-17 16:46:58 +0530
commita5e5d403482e8fccf7d1f1502bbf1d72962be9d2 (patch)
tree692a4fd657a51ef78c8637533aae355645efcd55 /pw
parent43901a26cb4f0c59b2ef1350202049ce4011019d (diff)
downloadpw-a5e5d403482e8fccf7d1f1502bbf1d72962be9d2.tar.gz
Pipe output to `head -1`
pass(1) clients like to use other lines for metadata Signed-off-by: Anirudh Oppiliappan <x@icyphox.sh>
Diffstat (limited to 'pw')
-rwxr-xr-xpw2
1 files changed, 1 insertions, 1 deletions
diff --git a/pw b/pw
index 4e0e29e..c22f7d7 100755
--- a/pw
+++ b/pw
@@ -51,7 +51,7 @@ del() {
51 51
52show() { 52show() {
53 checkf "$PW_DIR/$1.gpg" 53 checkf "$PW_DIR/$1.gpg"
54 gpg2 --decrypt --quiet --use-agent "$PW_DIR/$1.gpg" 54 gpg2 --decrypt --quiet --use-agent "$PW_DIR/$1.gpg" | head -1
55} 55}
56 56
57# TODO: rework having to checkf twice 57# TODO: rework having to checkf twice