mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-20 13:23:21 -07:00
Use path when sourcing get-web-token
This commit is contained in:
parent
b56d1c0082
commit
75ac111caa
1 changed files with 3 additions and 2 deletions
|
@ -409,8 +409,9 @@ if [ "${CHECKUPDATE}" = "yes" -a "${AUTOUPDATE}" = "no" ]; then
|
||||||
rm "${FILE_REMOTE}" 2>/dev/null >/dev/null
|
rm "${FILE_REMOTE}" 2>/dev/null >/dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${PUBLIC}" = "no" ]; then
|
if [ "${PUBLIC}" = "no" -a -z "$TOKEN" ]; then
|
||||||
[ -f extras/get-web-token ] && source extras/get-web-token
|
TO_SOURCE="$(dirname "$0")/extras/get-web-token"
|
||||||
|
[ -f "$TO_SOURCE" ] && source $TO_SOURCE
|
||||||
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