update to 1.27
This commit is contained in:
parent
786e17b5b8
commit
fff03a24bb
3 changed files with 7 additions and 7 deletions
|
|
@ -12,10 +12,10 @@ else
|
|||
exit 99
|
||||
fi
|
||||
|
||||
if ! [[ -f 'Server-Files-1.26.0.zip' ]]; then
|
||||
if ! [[ -f 'Server-Files-1.27.0.zip' ]]; then
|
||||
rm -fr config defaultconfigs kubejs mods packmenu Simple.zip forge*
|
||||
curl -Lo 'Server-Files-1.26.0.zip' 'https://edge.forgecdn.net/files/5961/055/Server-Files-1.26.zip' || exit 9
|
||||
unzip -u -o 'Server-Files-1.26.0.zip' -d /data
|
||||
curl -Lo 'Server-Files-1.27.0.zip' 'https://edge.forgecdn.net/files/5965/157/Server-Files-1.27.zip' || exit 9
|
||||
unzip -u -o 'Server-Files-1.27.0.zip' -d /data
|
||||
DIR_TEST=$(find . -type d -maxdepth 1 | tail -1 | sed 's/^.\{2\}//g')
|
||||
if [[ $(find . -type d -maxdepth 1 | wc -l) -gt 1 ]]; then
|
||||
cd "${DIR_TEST}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue