Add deploy script
This commit is contained in:
parent
bee8f740c6
commit
1b38039f62
24
storage-net/deploy.sh
Executable file
24
storage-net/deploy.sh
Executable 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
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user