From 10adb23197b934e937f76429beda898fdf0b3c7d Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Tue, 14 Mar 2023 11:22:24 -0400 Subject: [PATCH] test --- plex-token.sh | 5 ----- plex-tools.sh | 1 + 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/plex-token.sh b/plex-token.sh index e3a4921..1cac2fa 100644 --- a/plex-token.sh +++ b/plex-token.sh @@ -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 diff --git a/plex-tools.sh b/plex-tools.sh index 54f2a11..42ce348 100644 --- a/plex-tools.sh +++ b/plex-tools.sh @@ -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