mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix SillyTavern being launched from a different working directory
Fixes launching ST from ST launcher on mac
This commit is contained in:
3
start.sh
3
start.sh
@@ -1,5 +1,8 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Make sure pwd is the directory of the script
|
||||||
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
if ! command -v npm &> /dev/null
|
if ! command -v npm &> /dev/null
|
||||||
then
|
then
|
||||||
read -p "npm is not installed. Do you want to install nodejs and npm? (y/n)" choice
|
read -p "npm is not installed. Do you want to install nodejs and npm? (y/n)" choice
|
||||||
|
Reference in New Issue
Block a user