From 3eff33a7503225a6047c5a55bca6242a9bd81d3e Mon Sep 17 00:00:00 2001 From: SFKao Date: Mon, 18 Aug 2025 14:34:22 +0200 Subject: [PATCH] Actualizar updateMods.sh --- updateMods.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/updateMods.sh b/updateMods.sh index fd55f3b..247a373 100644 --- a/updateMods.sh +++ b/updateMods.sh @@ -13,7 +13,7 @@ fi if [ ! -d ".git" ]; then echo "Git no esta inicializado" git init - git remote add origin https://git.sfkao.net/SFKao/Las_3000-modpack.git + git remote add origin http://127.0.0.1:11001/SFKao/Las_3000-modpack.git git fetch git checkout -t origin/server -f fi @@ -24,5 +24,19 @@ if ! git fetch --progress || ! git pull --rebase --autostash --progress; then exit 1 fi +# === Sync datapacks === +SOURCE="./datapacks" +TARGET="./world/datapacks" + +if [ -d "$SOURCE" ]; then + echo "Sincronizando datapacks..." + mkdir -p "$TARGET" + rm -rf "$TARGET"/* + cp -r "$SOURCE"/* "$TARGET"/ + echo "Datapacks copiados en $TARGET" +else + echo "No se encontrĂ³ la carpeta $SOURCE" +fi + # Equivalent to pause (wait for user input before closing) read -rp "Presiona Enter para salir..."