mirror of
https://github.com/TotalFreedomMC/TF-Scripts.git
synced 2024-12-23 00:15:10 +00:00
16 lines
249 B
Bash
16 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
|
||
|
|