This commit is contained in:
deathbybandaid 2023-03-14 09:22:42 -04:00
parent 1c11f8d20e
commit 235af0e4d1
3 changed files with 1747 additions and 7 deletions

1733
DBRepair.sh Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1 +1,5 @@
#!/bin/bash
# ChuckPa already wrote a great function for getting host info
source ./DBRepair.sh 99
echo "$AppSuppDir"

View File

@ -2,11 +2,14 @@
echo "Welcome to plex-tools wrapper utility!"
is_command() {
local check_command="$1"
command -v "${check_command}" >/dev/null 2>&1
}
if ! is_command plex-tools ; then
echo "plex-tools command could not be found"
script_delegation ()
{
if [ -f "$1" ] ; then
if [ "$1" == "token" ]
then
source ./plex-token.sh
fi
else
echo "'$1' is not a valid plex-tools command"
fi
}