diff options
-rwxr-xr-x | pw | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -23,7 +23,7 @@ add() { | |||
23 | pass="$2" | 23 | pass="$2" |
24 | else | 24 | else |
25 | # uses default length of 25 chars, unless PW_LEN is set | 25 | # uses default length of 25 chars, unless PW_LEN is set |
26 | pass="$(pwgen ${PW_LEN:-25} 1 -s)" | 26 | pass="$(pwgen "${PW_LEN:-25}" 1 -s)" |
27 | echo "pw: generated password for $1" | 27 | echo "pw: generated password for $1" |
28 | fi | 28 | fi |
29 | if [[ ! -f "$PW_DIR/$1.gpg" ]]; then | 29 | if [[ ! -f "$PW_DIR/$1.gpg" ]]; then |