remove unnecessary ./ from if statements in update()

This commit is contained in:
Alib234
2024-06-08 06:58:50 +02:00
parent 7bbcff28ea
commit 4ee1a97305

View File

@@ -354,7 +354,7 @@ update() {
git pull --rebase --autostash
# Update SillyTavern if directory exists
if [ -d "./SillyTavern" ]; then
if [ -d "SillyTavern" ]; then
log_message "INFO" "Updating SillyTavern..."
cd "SillyTavern"
git pull --rebase --autostash
@@ -365,7 +365,7 @@ update() {
fi
# Update Extras if directory exists
if [ -d "./SillyTavern-extras" ]; then
if [ -d "SillyTavern-extras" ]; then
log_message "INFO" "Updating SillyTavern-extras..."
cd "SillyTavern-extras"
git pull --rebase --autostash
@@ -376,7 +376,7 @@ update() {
fi
# Update XTTS if directory exists
if [ -d "./xtts" ]; then
if [ -d "xtts" ]; then
log_message "INFO" "Updating XTTS..."
cd "xtts"
source activate xtts