2024-02-25 22:14:04 -06:00
|
|
|
#! /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"
|
|
|
|
|
|
|
|
_ccroot="$mcroot/.minecraft/saves/$world/computercraft/computer"
|
2024-02-25 22:15:30 -06:00
|
|
|
echo "Root: $_ccroot"
|
2024-02-26 01:37:03 -06:00
|
|
|
for computer in "$masterid"; do
|
2024-02-25 22:44:46 -06:00
|
|
|
echo "Deploying to: $computer"
|
|
|
|
mkdir -p "$_ccroot/$computer"
|
2024-02-26 01:46:12 -06:00
|
|
|
cp common.lua "$_ccroot/$computer/startup"
|
2024-02-26 01:37:38 -06:00
|
|
|
done
|