This commit is contained in:
deathbybandaid 2024-02-21 11:06:39 -05:00
parent 7ee8a9fa64
commit 847fe399f3
13 changed files with 13 additions and 14 deletions

View File

@ -2,22 +2,21 @@
echo "Welcome to plex-tools wrapper utility!" echo "Welcome to plex-tools wrapper utility!"
echo "$PWD" script_dir="$PWD"
exit
case "$1" in case "$1" in
token) source ./plex-token.sh;; token) source "$script_dir"/bash/plex-token.sh;;
freshen) source ./plex-freshen.sh;; freshen) source "$script_dir"/bash/plex-freshen.sh;;
trash) source ./plex-emptytrash.sh;; trash) source "$script_dir"/bash/plex-emptytrash.sh;;
analyze) source ./plex-analyze.sh;; analyze) source "$script_dir"/bash/plex-analyze.sh;;
bundles) source ./plex-cleanbundles.sh;; bundles) source "$script_dir"/bash/plex-cleanbundles.sh;;
metadata) source ./plex-refreshmetadata.sh;; metadata) source "$script_dir"/bash/plex-refreshmetadata.sh;;
claim) source ./claimpms.sh;; claim) source "$script_dir"/bash/claimpms.sh;;
sqlite) source ./plex-sqlite.sh;; sqlite) source "$script_dir"/bash/plex-sqlite.sh;;
dbrepair) source ./DBRepair.sh stop auto start exit;; dbrepair) source "$script_dir"/bash/DBRepair.sh stop auto start exit;;
start) source ./DBRepair.sh start exit;; start) source "$script_dir"/bash/DBRepair.sh start exit;;
stop) source ./DBRepair.sh stop exit;; stop) source "$script_dir"/bash/DBRepair.sh stop exit;;
restart) source ./DBRepair.sh stop start exit;; restart) source "$script_dir"/bash/DBRepair.sh stop start exit;;
"") echo "No plex-tools command given";; "") echo "No plex-tools command given";;
*) echo "'$1' is not a valid plex-tools command";; *) echo "'$1' is not a valid plex-tools command";;
esac esac