#!/bin/bash

#
# Copyright (C) 2024  Minecon724
# Tweaks724 is licensed under the GNU General Public License. See the LICENSE.md file
# in the project root for the full license text.
#

FILENAME=MS4yMS4xLTQK.tar.zst

curl -O https://36ab09b1.m724.eu/$FILENAME
if [ "$(sha512sum $FILENAME)" = "475b931b6dde126aafd3f959bd02e122aa3c671ad11e83cbe1a9c9ea771a424f203381aa31e4ab40052dae1bfbe96c61daa81add1afab46dd423a5f038d68a6b  MS4yMS4xLTQK.tar.zst" ]; then
  tar -xaf $FILENAME -C "$1"
  rm $FILENAME
else
  echo "Checksum invalid"
  rm $FILENAME
  exit 1
fi