forked from Minecraft/website
17 lines
299 B
Bash
17 lines
299 B
Bash
# Remove backup
|
|
rm -rf dist_bk/
|
|
|
|
# Create backup
|
|
cp -r dist/ dist_bk/
|
|
|
|
# Get new dist
|
|
wget https://git.jojodev.com/Minecraft/website/releases/download/latest/dist.tar.gz
|
|
|
|
# Replace existing dist with new dist
|
|
rm -rf dist/
|
|
mkdir dist
|
|
tar -xf dist.tar.gz -C dist
|
|
|
|
# Get rid of artifact
|
|
rm dist.tar.gz
|