This commit is contained in:
deathbybandaid 2023-03-14 10:36:34 -04:00
parent 603e82998f
commit e20984525c
2 changed files with 6 additions and 20 deletions

View File

@ -1,19 +1,5 @@
#!/bin/bash
script_delegation ()
{
if [[ $# -gt 0 ]] ; then
echo "$1"
if [[ "$1" "token" ]]
then
source plex-token.sh
else
echo "'$1' is not a valid plex-tools command"
fi
}
# ChuckPa already wrote a great function for getting host info
source ./HostConfig.sh

View File

@ -4,11 +4,11 @@ echo "Welcome to plex-tools wrapper utility!"
script_delegation ()
{
if [ -f "$1" ] ; then
if [ "$1" == "token" ]
if [[ $# -gt 0 ]] ; then
echo "$1"
if [[ "$1" "token" ]]
then
source ./plex-token.sh
fi
source plex-token.sh
else
echo "'$1' is not a valid plex-tools command"
fi