mirror of
https://github.com/SillyTavern/SillyTavern-Launcher.git
synced 2026-04-27 17:51:28 +00:00
Merge pull request #94 from someotherotherguy/patch-1
Return to parent directory after launching/before returning home
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user