This commit is contained in:
deathbybandaid 2023-03-14 11:22:24 -04:00
parent e181ee6a79
commit 10adb23197
2 changed files with 1 additions and 5 deletions

View File

@ -20,11 +20,6 @@ token_from_Pref_XML() {
}
token_from_api() {
if [ -z "$PLEX_LOGIN" ] || [ -z "$PLEX_PASSWORD" ]; then
PLEX_LOGIN=$1
PLEX_PASSWORD=$2
fi
while [ -z "$PLEX_LOGIN" ]; do
>&2 echo -n 'Your Plex login (e-mail or username): '
read PLEX_LOGIN

View File

@ -4,6 +4,7 @@ echo "Welcome to plex-tools wrapper utility!"
case "$1" in
token) source ./plex-token.sh;;
token) source ./DBRepair.sh stop auto start exit;;
"") echo "No plex-tools command given";;
*) echo "'$1' is not a valid plex-tools command";;
esac