mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-20 21:33:16 -07:00
Merge 5695d236e2
into 76416d1a25
This commit is contained in:
commit
bb2a48257c
1 changed files with 5 additions and 2 deletions
|
@ -335,8 +335,11 @@ if [ "${CHECKUPDATE}" = "yes" -a "${AUTOUPDATE}" = "no" ]; then
|
|||
fi
|
||||
|
||||
if [ "${PUBLIC}" = "no" -a -z "$TOKEN" ]; then
|
||||
TO_SOURCE="$(dirname "$0")/extras/get-plex-token"
|
||||
[ -f "$TO_SOURCE" ] && source $TO_SOURCE
|
||||
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