TF-Scripts/FreeOP Servers/gettemplates.sh
Wild1145 53b0fa94df Various updates, reset mostly works now
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.
2021-06-27 20:36:52 +01:00

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