aboutsummaryrefslogtreecommitdiff
path: root/pw
diff options
context:
space:
mode:
authorAnirudh Oppiliappan <x@icyphox.sh>2020-12-09 12:47:03 +0530
committerAnirudh Oppiliappan <x@icyphox.sh>2021-01-24 10:58:51 +0530
commitf4ab00e5ac6fc80bc9a3d852ec521f1f208dbf42 (patch)
tree32013dfd871268e82e28cd256a03082d9381f1a6 /pw
parent56ad0e841f177e2587b2fc3b45a35ebc6c9ee0ac (diff)
downloadpw-f4ab00e5ac6fc80bc9a3d852ec521f1f208dbf42.tar.gz
Generate armored output
Diffstat (limited to 'pw')
-rwxr-xr-xpw2
1 files changed, 1 insertions, 1 deletions
diff --git a/pw b/pw
index e8adefa..4205630 100755
--- a/pw
+++ b/pw
@@ -34,7 +34,7 @@ add() {
34 printf "pw: generated password for %s\n" "$1" 34 printf "pw: generated password for %s\n" "$1"
35 fi 35 fi
36 if [[ ! -f "$PW_DIR/$1.gpg" ]]; then 36 if [[ ! -f "$PW_DIR/$1.gpg" ]]; then
37 printf "%s" "$pass" | "$gpg "-er "$PW_KEY" -o "$PW_DIR/$1.gpg" 37 printf "%s" "$pass" | "$gpg" -aer "$PW_KEY" -o "$PW_DIR/$1.gpg"
38 printf "pw: %s/%s.gpg created\n" "$PW_DIR" "$1" 38 printf "pw: %s/%s.gpg created\n" "$PW_DIR" "$1"
39 else 39 else
40 die "the file %s/%s.gpg exists" "$PW_DIR" "$1" 40 die "the file %s/%s.gpg exists" "$PW_DIR" "$1"