2018-05-16 16:32:41 +00:00
|
|
|
#!/bin/bash
|
|
|
|
git rm --cached -rfq '*/*' # Unstage everything in folders in case a plugin got removed
|
|
|
|
#readarray -t plugins < <(ls -a *.jar | cut -d "." -f 1 | cut -d "-" -f 1 | cut -d "_" -f 1
|
|
|
|
readarray -t plugins < plugins.txt # -t removes trailing newlines
|
|
|
|
for i in "${plugins[@]}"
|
|
|
|
do
|
2018-05-27 16:20:44 +00:00
|
|
|
if [ -d $i -a $i != "DiscordPlugin" ]; then
|
2018-05-16 16:32:41 +00:00
|
|
|
find $i -name "config.yml" -exec git add -f '{}' \; # All files are ignored, need to force add
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
find . -path './Movecraft/types/*.craft' -exec git add -f '{}' \;
|
2018-05-18 18:14:28 +00:00
|
|
|
git add -f 'dynmap/configuration.txt' 'dynmap/worlds.txt'
|
2018-05-23 14:27:02 +00:00
|
|
|
git add -f 'MythicMobs/*' ':!:MythicMobs/SavedData/*'
|
2018-05-31 22:33:22 +00:00
|
|
|
git add -f ':(glob)Jobs/*.yml' ':!:Jobs/furnaceBrewingStands.yml'
|
|
|
|
git add -f 'Towny/settings/townyperms.yml'
|
2018-05-18 18:14:28 +00:00
|
|
|
|
2018-05-16 16:32:41 +00:00
|
|
|
git add -f update.sh download.sh
|
|
|
|
|
|
|
|
git commit && git push
|