Update deploy script

This commit is contained in:
Salt 2024-02-25 22:15:30 -06:00
parent c19888f597
commit 7853e6174e
1 changed files with 6 additions and 2 deletions

View File

@ -13,12 +13,16 @@ masterid="0"
slaveid="1"
_ccroot="$mcroot/.minecraft/saves/$world/computercraft/computer"
ls -al "$_ccroot"
echo "Root: $_ccroot"
for computer in $masterid $slaveid; do
:
done
if [ -f master.lua ]; then
echo "Deploying master to $masterid"
cp master.lua "$_ccroot/$masterid/autostart.lua"
fi
if [ -f slave.lua ]; then
echo "Deploying slave to $slaveid"
cp slave.lua "$_ccroot/$slaveid/autostart.lua"
fi