Actualizar updateMods.sh
This commit is contained in:
parent
a6e5ee5a46
commit
3eff33a750
@ -13,7 +13,7 @@ fi
|
|||||||
if [ ! -d ".git" ]; then
|
if [ ! -d ".git" ]; then
|
||||||
echo "Git no esta inicializado"
|
echo "Git no esta inicializado"
|
||||||
git init
|
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 fetch
|
||||||
git checkout -t origin/server -f
|
git checkout -t origin/server -f
|
||||||
fi
|
fi
|
||||||
@ -24,5 +24,19 @@ if ! git fetch --progress || ! git pull --rebase --autostash --progress; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
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)
|
# Equivalent to pause (wait for user input before closing)
|
||||||
read -rp "Presiona Enter para salir..."
|
read -rp "Presiona Enter para salir..."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user