mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-21 05:43:20 -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
|
fi
|
||||||
|
|
||||||
if [ "${PUBLIC}" = "no" -a -z "$TOKEN" ]; then
|
if [ "${PUBLIC}" = "no" -a -z "$TOKEN" ]; then
|
||||||
TO_SOURCE="$(dirname "$0")/extras/get-plex-token"
|
declare -f getPlexToken > /dev/null
|
||||||
[ -f "$TO_SOURCE" ] && source $TO_SOURCE
|
if [ $? -ne 0 ]; then
|
||||||
|
error "getPlexToken() function missing, check that it its sourced correctly"
|
||||||
|
exit 3
|
||||||
|
fi
|
||||||
if ! getPlexToken; then
|
if ! getPlexToken; then
|
||||||
error "Unable to get Plex token, falling back to public release"
|
error "Unable to get Plex token, falling back to public release"
|
||||||
PUBLIC="yes"
|
PUBLIC="yes"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue