Generate armored output
Anirudh Oppiliappan x@icyphox.sh
Wed, 09 Dec 2020 12:47:03 +0530
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
pw
→
pw
@@ -34,7 +34,7 @@ pass="$(pwgen "${PW_LEN:-25}" 1 -s)"
printf "pw: generated password for %s\n" "$1" fi if [[ ! -f "$PW_DIR/$1.gpg" ]]; then - printf "%s" "$pass" | "$gpg "-er "$PW_KEY" -o "$PW_DIR/$1.gpg" + printf "%s" "$pass" | "$gpg" -aer "$PW_KEY" -o "$PW_DIR/$1.gpg" printf "pw: %s/%s.gpg created\n" "$PW_DIR" "$1" else die "the file %s/%s.gpg exists" "$PW_DIR" "$1"