Merge pull request #94 from someotherotherguy/patch-1

Return to parent directory after launching/before returning home
This commit is contained in:
deffcolony
2025-01-31 13:32:54 +01:00
committed by GitHub

View File

@@ -237,13 +237,13 @@ find_terminal()
start_st()
{
check_nodejs
cd "SillyTavern" || exit 1
#if LAUNCH_NEW_WIN is set to 0, SillyTavern will launch in the same window
if [ "$LAUNCH_NEW_WIN" = "0" ]; then
log_message "INFO" "SillyTavern launched"
cd "SillyTavern" || exit 1
./start.sh
else
cd "SillyTavern" || exit 1
log_message "INFO" "SillyTavern launched in a new window."
# Find a suitable terminal
local detected_terminal
@@ -261,6 +261,7 @@ start_st()
fi
fi
cd ..
home
}