2024-02-25 22:14:04 -06:00
|
|
|
#! /bin/sh
|
|
|
|
#
|
|
|
|
# deploy.sh
|
|
|
|
# Copyright (C) 2024 Jacob Babor <jacob@babor.tech>
|
|
|
|
#
|
|
|
|
# Distributed under terms of the MIT license.
|
|
|
|
#
|
|
|
|
|
|
|
|
mcroot="$HOME/.var/app/org.prismlauncher.PrismLauncher/data/PrismLauncher/instances/ComputerCraft Sandbox/"
|
|
|
|
world="New World"
|
|
|
|
|
|
|
|
masterid="0"
|
|
|
|
slaveid="1"
|
|
|
|
|
|
|
|
_ccroot="$mcroot/.minecraft/saves/$world/computercraft/computer"
|
2024-02-25 22:15:30 -06:00
|
|
|
echo "Root: $_ccroot"
|
|
|
|
for computer in $masterid $slaveid; do
|
2024-02-25 22:22:02 -06:00
|
|
|
cp common.lua "$_ccroot/$masterid/autostart.lua"
|
2024-02-25 22:15:30 -06:00
|
|
|
done
|
2024-02-25 22:22:02 -06:00
|
|
|
cp masterconfig.lua "$_ccroot/$masterid/config.lua"
|
|
|
|
cp slaveconfig.lua "$_ccroot/$slaveid/config.lua"
|