From b7daffea87ba03aa4ee396e05a5d7dd81b68b900 Mon Sep 17 00:00:00 2001 From: thebluepotato Date: Fri, 8 Sep 2017 09:04:41 +0200 Subject: [PATCH] Enhance the macOS install script (#1786) Fixes #1784 --- src/Jackett.Console/install_service_macos.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Jackett.Console/install_service_macos.sh b/src/Jackett.Console/install_service_macos.sh index 25f303a63..bc0913284 100755 --- a/src/Jackett.Console/install_service_macos.sh +++ b/src/Jackett.Console/install_service_macos.sh @@ -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)"