diff --git a/plex-token.sh b/plex-token.sh index fbbc8f7..8b62116 100644 --- a/plex-token.sh +++ b/plex-token.sh @@ -4,9 +4,9 @@ script_delegation () { - if [ -f "$1" ] ; then + if [[ $# -gt 0 ]] ; then echo "$1" - if [[ "$1" == "token" ]] + if [[ "$1" "token" ]] then source plex-token.sh else