pending files commited
don't really knwon what i am doing here, commit pending code ... Signed-off-by: philippe lhardy <philippe.lhardy@astrolabe.coop>
This commit is contained in:
20
copytominetest.sh
Executable file
20
copytominetest.sh
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user