diff --git a/plex-freshen.sh b/plex-freshen.sh index e2e708b..4c33b33 100644 --- a/plex-freshen.sh +++ b/plex-freshen.sh @@ -9,6 +9,8 @@ update_from_cli() { echo "Getting Plex Library list" echo $("$plex_scanner_location" --list) + + exit } update_from_api() { @@ -31,8 +33,8 @@ update_from_api() { } case "$2" in - api) update_from_api;; - ""|cli) update_from_cli;; + cli) update_from_cli;; + ""|api) update_from_api;; *) echo "'$1' is not a valid plex-tools freshen command";; esac