From 1acbef1890bc6019f4d428283fec2b4c83d0e563 Mon Sep 17 00:00:00 2001 From: John Tapsell Date: Wed, 24 Apr 2024 16:13:19 -0700 Subject: [PATCH] Fix SillyTavern being launched from a different working directory Fixes launching ST from ST launcher on mac --- start.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/start.sh b/start.sh index 23bf5b87d..2b698ba3e 100755 --- a/start.sh +++ b/start.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash +# Make sure pwd is the directory of the script +cd "$(dirname "$0")" + if ! command -v npm &> /dev/null then read -p "npm is not installed. Do you want to install nodejs and npm? (y/n)" choice