Update deploy script
This commit is contained in:
parent
c19888f597
commit
7853e6174e
@ -13,12 +13,16 @@ masterid="0"
|
|||||||
slaveid="1"
|
slaveid="1"
|
||||||
|
|
||||||
_ccroot="$mcroot/.minecraft/saves/$world/computercraft/computer"
|
_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
|
if [ -f master.lua ]; then
|
||||||
|
echo "Deploying master to $masterid"
|
||||||
cp master.lua "$_ccroot/$masterid/autostart.lua"
|
cp master.lua "$_ccroot/$masterid/autostart.lua"
|
||||||
fi
|
fi
|
||||||
if [ -f slave.lua ]; then
|
if [ -f slave.lua ]; then
|
||||||
|
echo "Deploying slave to $slaveid"
|
||||||
cp slave.lua "$_ccroot/$slaveid/autostart.lua"
|
cp slave.lua "$_ccroot/$slaveid/autostart.lua"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user