make first cd more concise

This commit is contained in:
Alib234
2024-06-08 07:09:41 +02:00
parent a268f7233c
commit 22e8abb195

View File

@@ -131,10 +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 "$(dirname "$0")/SillyTavern" || exit 1
# Check for updates # Check for updates
git fetch origin git fetch origin