mc-scripts/storage-net/deploy.sh

20 lines
499 B
Bash
Raw Normal View History

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"
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