1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2024-12-27 18:29:47 +00:00

Enhance the macOS install script (#1786)

Fixes #1784
This commit is contained in:
thebluepotato 2017-09-08 09:04:41 +02:00 committed by kaso17
parent e7b9f8c5ec
commit b7daffea87

View file

@ -3,9 +3,12 @@
# Stop and unload the service if it's running
launchctl remove org.user.Jackett
# Move working directory to Jackett's
cd "$(dirname "$0")"
# Check if we're running from Jackett's directory
if [ ! -f ./JackettConsole.exe ]; then
echo "Couldn't locate JackettConsole.exe. Are you running from the right directory?"
echo "Couldn't locate JackettConsole.exe. Is the script in the right directory?"
exit 1
fi
jackettdir="$(pwd)"