mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-14 02:26:56 -07:00
Make plexupdate-core available earlier in installer.sh
This commit is contained in:
parent
293e6d5ecb
commit
0065210791
2 changed files with 20 additions and 9 deletions
|
@ -5,7 +5,7 @@
|
|||
# GPW -> getPlexWebToken
|
||||
# HELPERS -> keypair, rawurlencode, trimQuotes
|
||||
# RNNG -> running
|
||||
# SHARED -> warn, info, warn
|
||||
# SHARED -> warn, info, error, abort
|
||||
|
||||
######## CONSTANTS ########
|
||||
# Current pages we need - Do not change unless Plex.tv changes again
|
||||
|
@ -272,8 +272,13 @@ error() {
|
|||
echo "ERROR: $@" >&2
|
||||
}
|
||||
|
||||
abort() {
|
||||
echo "$@" >&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Intentionally leaving this hard to find so that people aren't trying to use it manually.
|
||||
if [ "$(basename "$0")" = "get-plex-token" ]; then
|
||||
[ -f /etc/plexupdate.conf ] && source /etc/plexupdate.conf
|
||||
getPlexToken && info "Token = $TOKEN"
|
||||
getPlexToken && info "TOKEN=$TOKEN"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue