aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnirudh Oppiliappan <x@icyphox.sh>2019-11-19 17:48:32 +0530
committerAnirudh Oppiliappan <x@icyphox.sh>2019-11-19 17:48:32 +0530
commit5ce74504501fe36ffd4dbb8cb22f156c4dfc8699 (patch)
tree7b021615168b07022e290f5246c2adea2cbb12cb
parent68efa8d4af4694f8da16622faf1b02cdb13307cc (diff)
downloadpw-5ce74504501fe36ffd4dbb8cb22f156c4dfc8699.tar.gz
Satisfy SC2086
Signed-off-by: Anirudh Oppiliappan <x@icyphox.sh>
-rwxr-xr-xpw2
1 files changed, 1 insertions, 1 deletions
diff --git a/pw b/pw
index 90be310..ace6134 100755
--- a/pw
+++ b/pw
@@ -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