mirror of
https://github.com/TotalFreedomMC/TF-Scripts.git
synced 2024-12-22 16:05:03 +00:00
53b0fa94df
Just need to hook the MySQL up and then the bare minimum reset works, next step then will be to unzip maps and all that shite.
15 lines
249 B
Bash
15 lines
249 B
Bash
#!
|
|
|
|
declare -a dirs
|
|
i=1
|
|
for d in /home/tfserver/template/*/
|
|
do
|
|
d=${d#"/home/tfserver/template/"}
|
|
dirs[i++]="${d%/}"
|
|
done
|
|
echo "There are ${#dirs[@]} templates to chose from"
|
|
for((i=1;i<=${#dirs[@]};i++))
|
|
do
|
|
echo $i")" "${dirs[i]}"
|
|
done
|
|
|