diff --git a/setup.sh b/setup.sh index cc55c04..3a4898e 100755 --- a/setup.sh +++ b/setup.sh @@ -43,7 +43,8 @@ while read -r -u 3 line; do value=${currvar[1]::-1} # check if there's a password to generate - if [[ ${currvar[0]} =~ (PASS|PASSWORD|PWD|PASSWD)$ ]]; then + if [[ ! ${currvar[1],,} =~ ^(true|false|yes|no)$ ]] && \ + [[ ${currvar[0]} =~ (PASS|PASSWORD|PWD|PASSWD)$ ]]; then value=$(openssl rand -base64 29 | tr -d "=+/" | cut -c1-25) fi