mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-19 21:03:19 -07:00
Add check for getPlexToken() in plexupdate.sh
This commit is contained in:
parent
34f50ad101
commit
5695d236e2
1 changed files with 5 additions and 0 deletions
|
@ -335,6 +335,11 @@ if [ "${CHECKUPDATE}" = "yes" -a "${AUTOUPDATE}" = "no" ]; then
|
|||
fi
|
||||
|
||||
if [ "${PUBLIC}" = "no" -a -z "$TOKEN" ]; then
|
||||
declare -f getPlexToken > /dev/null
|
||||
if [ $? -ne 0 ]; then
|
||||
error "getPlexToken() function missing, check that it its sourced correctly"
|
||||
exit 3
|
||||
fi
|
||||
if ! getPlexToken; then
|
||||
error "Unable to get Plex token, falling back to public release"
|
||||
PUBLIC="yes"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue