Add deploy script

This commit is contained in:
Salt 2024-02-25 22:14:04 -06:00
parent bee8f740c6
commit 1b38039f62
1 changed files with 24 additions and 0 deletions

24
storage-net/deploy.sh Executable file
View File

@ -0,0 +1,24 @@
#! /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