Files
artloglaby/copytominetest.sh
philippe lhardy 65cc0f4c62 pending files commited
don't really knwon what i am doing here, commit pending code ...

Signed-off-by: philippe lhardy <philippe.lhardy@astrolabe.coop>
2025-11-01 14:09:35 +01:00

21 lines
275 B
Bash
Executable File

#!/bin/bash
name=$1.we
srcdir=lab/
game=nm
dest=~/.minetest/worlds/$game/schems
if [[ ! -d $dest ]]
then
echo "[ERROR] no destination directory $dest found" >&2
fi
src=$srcdir/$name
if [[ -f $src ]]
then
cp $src $dest/
else
echo "[ERROR] missing $src" >&2
fi