don't really knwon what i am doing here, commit pending code ... Signed-off-by: philippe lhardy <philippe.lhardy@astrolabe.coop>
21 lines
275 B
Bash
Executable File
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
|