test
This commit is contained in:
parent
603e82998f
commit
e20984525c
@ -1,19 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/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
|
# ChuckPa already wrote a great function for getting host info
|
||||||
source ./HostConfig.sh
|
source ./HostConfig.sh
|
||||||
|
|
||||||
|
|||||||
@ -4,11 +4,11 @@ echo "Welcome to plex-tools wrapper utility!"
|
|||||||
|
|
||||||
script_delegation ()
|
script_delegation ()
|
||||||
{
|
{
|
||||||
if [ -f "$1" ] ; then
|
if [[ $# -gt 0 ]] ; then
|
||||||
if [ "$1" == "token" ]
|
echo "$1"
|
||||||
|
if [[ "$1" "token" ]]
|
||||||
then
|
then
|
||||||
source ./plex-token.sh
|
source plex-token.sh
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
echo "'$1' is not a valid plex-tools command"
|
echo "'$1' is not a valid plex-tools command"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user