diff options
| author | Sam Tygier <samtygier@yahoo.co.uk> | 2020-01-07 21:48:09 +0000 |
|---|---|---|
| committer | XECDesign <XECDesign@users.noreply.github.com> | 2020-01-08 08:59:55 +0000 |
| commit | 9d334bee66a75bd334b8f241f1c31ce6cc0f5f17 (patch) | |
| tree | d10665cae15d1a007531e2c8daf6271a960ed64d | |
| parent | 024840034e2fab7efe170a303ef726fed1314f82 (diff) | |
WPA_PASSWORD length check should only occur if set
Test if WPA_PASSWORD is set before check that it has a valid length.
| -rwxr-xr-x | build.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -220,7 +220,7 @@ if [[ -n "${APT_PROXY}" ]] && ! curl --silent "${APT_PROXY}" >/dev/null ; then exit 1 fi -if [[ ${#WPA_PASSWORD} -lt 8 || ${#WPA_PASSWORD} -gt 63 ]] ; then +if [[ -n "${WPA_PASSWORD}" && ${#WPA_PASSWORD} -lt 8 || ${#WPA_PASSWORD} -gt 63 ]] ; then echo "WPA_PASSWORD" must be between 8 and 63 characters exit 1 fi |
