mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-07-13 08:43:00 -07:00
Warn users who forget to set PUBLIC=no
Even if you define email and password, the public version is still downloaded unless PUBLIC=no This change warns the user about this behavior since it's most likely not intended.
This commit is contained in:
parent
2e26cd3dcc
commit
96eb62b467
1 changed files with 2 additions and 0 deletions
|
@ -378,6 +378,8 @@ if [ -z "${EMAIL}" -o -z "${PASS}" ] && [ "${PUBLIC}" = "no" ]; then
|
||||||
elif [ ! -z "${EMAIL}" ] && [[ "$EMAIL" == *"@"* ]] && [[ "$EMAIL" != *"@"*"."* ]]; then
|
elif [ ! -z "${EMAIL}" ] && [[ "$EMAIL" == *"@"* ]] && [[ "$EMAIL" != *"@"*"."* ]]; then
|
||||||
error "EMAIL field must contain a valid email address"
|
error "EMAIL field must contain a valid email address"
|
||||||
exit 1
|
exit 1
|
||||||
|
elif [ ! -z "${EMAIL}" -a ! -z "${PASS}" -a "${PUBLIC}" = "yes" ]; then
|
||||||
|
warn "You have defined email and password but PUBLIC is set to yes, this will not download the PlexPass version"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue