make the script cd into the base dir first

This commit is contained in:
Alib234
2024-06-08 07:05:42 +02:00
parent 4ee1a97305
commit a268f7233c

View File

@@ -131,7 +131,8 @@ install_git() {
echo -e "${blue_fg_strong}[INFO] Git is already installed.${reset}" echo -e "${blue_fg_strong}[INFO] Git is already installed.${reset}"
fi fi
} }
#cd to base dir first
cd "$(dirname "$0")"
# Change the current directory to 'sillytavern' folder # Change the current directory to 'sillytavern' folder
cd "SillyTavern" || exit 1 cd "SillyTavern" || exit 1