Fix SillyTavern being launched from a different working directory

Fixes launching ST from ST launcher on mac
This commit is contained in:
John Tapsell 2024-04-24 16:13:19 -07:00
parent 51014e7a8d
commit 1acbef1890

View File

@ -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