2024-08-19 13:08:40 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
src_folder="."
|
|
|
|
|
|
|
|
# RETAIL
|
2024-08-21 12:33:41 +02:00
|
|
|
#wow_folder="beta"
|
|
|
|
wow_folder="classic_era"
|
2024-08-19 13:08:40 +02:00
|
|
|
|
|
|
|
# CLASSIC ERA
|
|
|
|
dest_folder="/Applications/World of Warcraft/_${wow_folder}_/Interface/AddOns/CzechQuests"
|
|
|
|
|
|
|
|
fswatch -o "$src_folder" | while read -r change; do
|
|
|
|
rsync -avu --delete "$src_folder" "$dest_folder" --exclude={'.*','*.png','*.sh','*.md','Quests/Data/**'}
|
|
|
|
rsync -au --delete "$src_folder/Quests/Data/$wow_folder/" "$dest_folder/Quests/Data/"
|
|
|
|
cp "$src_folder/Quests/Data/other.lua" "$dest_folder/Quests/Data/"
|
|
|
|
done
|