echo "${BOLDRED}ERROR${NC}: Couldn't locate ./jackett - Is the script in the right directory?"
exit 1
fi
jackettdir="$(pwd)"
echo "This script will uninstall Jackett. Do you want to proceed?"
select yn in "Yes" "No"; do
case $yn in
Yes ) break;;
No ) exit;;
esac
done
echo "What should be removed? ${BOLDRED}WARNING${NC}: deleting binaries will remove all files located in ${jackettdir}. ${BOLDRED}WARNING${NC}: deleting config files prevents Jackett from being reinstalled."
select yn in "Only agent" "Only agent and binaries" "Agent, binaries and config"; do
case $yn in
"Only agent" ) delagent=true; break;;
"Only agent and binaries" ) delagent=true; delbin=true; break;;
"Agent, binaries and config" ) delagent=true; delbin=true; delconf=true; break;;