25 lines
523 B
Bash
25 lines
523 B
Bash
|
#! /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"
|
||
|
ls -al "$_ccroot"
|
||
|
|
||
|
if [ -f master.lua ]; then
|
||
|
cp master.lua "$_ccroot/$masterid/autostart.lua"
|
||
|
fi
|
||
|
if [ -f slave.lua ]; then
|
||
|
cp slave.lua "$_ccroot/$slaveid/autostart.lua"
|
||
|
fi
|
||
|
|