mirror of
https://github.com/SillyTavern/SillyTavern-Launcher.git
synced 2026-11-05 00:27:39 +00:00
[PR #55] [MERGED] Fix launcher.sh bash script #105
Labels
No labels
🚏 Awaiting User Response
🐛Bug
🐛Bug
🐛Bug
🦄 Feature Request
✅ Fixed
✅ Fixed
👩💻 Good First Issue
‼️ High Priority
🧑💻 In Progress
🐧 Linux
🐧 Linux
💤 Low Priority
🍎 Mac
❕ Medium Priority
pull-request
🪟 Windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
SillyTavern/SillyTavern-Launcher#105
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/SillyTavern/SillyTavern-Launcher/pull/55
Author: @Alib234
Created: 6/8/2024
Status: ✅ Merged
Merged: 6/8/2024
Merged by: @deffcolony
Base:
main← Head:main📝 Commits (7)
3c4ada9fix bash script unable to update properly and unable to find terminal7bbcff2fix whoopsie4ee1a97remove unnecessary ./ from if statements in update()a268f72make the script cd into the base dir first22e8abbmake first cd more conciseb82ab6aremove "$(dirname "$0")" memes by removing it completely, as usage only caused issues or was pointless35ec50cactually make SillyTavern start📊 Changes
1 file changed (+39 additions, -27 deletions)
View changed files
📝
launcher.sh(+39 -27)📄 Description
This changes the launcher.sh bash script and fixes updating and finding a terminal.
The broken updating was caused by the script being in the SillyTavern subdirectory because of cd'ing into it at line 136, as well as incorrect cd parameters in the update function after finding the directory because if we are already in the script's directory
$(dirname "$0")outputs., I also simplified the if statements in the update() function and made it cd out back to the main SillyTavern-Launcher so it can proceed with the next update step.The seldom working terminal finding which always fell back to xterm was caused by the script looking at the $TERMINAL env var, I added to the find_terminal() function so that it also looks in the much more common $TERM env var first and then in $TERMINAL.
It also fixes random issues that I find that shouldn't happen but happen because of one reason or another.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.