mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-23 02:55:47 +01:00
25 lines
328 B
Bash
Executable File
25 lines
328 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
(
|
|
set -e
|
|
PS1="$"
|
|
basedir="$(cd "$1" && pwd -P)"
|
|
workdir="$basedir/work"
|
|
|
|
function update {
|
|
cd "$workdir/$1"
|
|
git fetch && git reset --hard origin/master
|
|
cd ../
|
|
git add $1
|
|
}
|
|
|
|
update Bukkit
|
|
update CraftBukkit
|
|
update Spigot
|
|
|
|
if [[ "$2" = "all" ]] ; then
|
|
update BuildData
|
|
update Paperclip
|
|
fi
|
|
)
|