PluginConfigs/update.sh

23 lines
899 B
Bash
Raw Permalink Normal View History

#!/bin/bash
git rm --cached -rfq '*/*' # Unstage everything in folders in case a plugin got removed
readarray -t plugins < plugins.txt # -t removes trailing newlines
for i in "${plugins[@]}"
do
if [ -d $i -a $i != "DiscordPlugin" -a $i != "OpenInv" ]; then
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 '{}' \;
git add -f 'dynmap/configuration.txt' 'dynmap/worlds.txt'
2018-05-23 14:27:02 +00:00
git add -f 'MythicMobs/*' ':!:MythicMobs/SavedData/*'
git add -f ':(glob)Jobs/*.yml' ':!:Jobs/furnaceBrewingStands.yml'
git add -f 'Towny/settings/townyperms.yml'
git add -f 'PlotSquared/*' ':!:PlotSquared/*storage*'
git add -f 'PermissionsEx/permissions.yml'
2018-06-13 19:01:00 +00:00
git add -f 'Multiverse-Core/worlds.yml'
2018-06-13 23:09:47 +00:00
git add -f 'ServerRunner/config.yml' # Not a plugin
git add -f update.sh download.sh
git commit && git push