diff options
author | Anirudh Oppiliappan <x@icyphox.sh> | 2019-11-19 17:48:32 +0530 |
---|---|---|
committer | Anirudh Oppiliappan <x@icyphox.sh> | 2019-11-19 17:48:32 +0530 |
commit | 5ce74504501fe36ffd4dbb8cb22f156c4dfc8699 (patch) | |
tree | 7b021615168b07022e290f5246c2adea2cbb12cb | |
parent | 68efa8d4af4694f8da16622faf1b02cdb13307cc (diff) | |
download | pw-5ce74504501fe36ffd4dbb8cb22f156c4dfc8699.tar.gz |
Satisfy SC2086
Signed-off-by: Anirudh Oppiliappan <x@icyphox.sh>
-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 |