fhl-server-configs/copy-cfgs.sh

14 lines
No EOL
208 B
Bash
Executable file

#!/bin/sh
copy_file()
{
find ./ -type f -name "$1" -print | while read LINE
do
DIR=$(dirname "$LINE")
cp -va "$LINE" "../$DIR/$1"
done
}
copy_file server.cfg
copy_file mapcycle.txt
copy_file motd.txt