test
This commit is contained in:
11
gen_games.sh
Executable file
11
gen_games.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
html='<ul class="games">'
|
||||
for entry in public/games/*
|
||||
do
|
||||
filename=$(basename "entry" .html)
|
||||
dest="/games/$filename"
|
||||
dest+=".html"
|
||||
html+="<li class=\"postli\"><a class=\"posta\" href=\"$dest"
|
||||
html+="\>$filename</a></li>"
|
||||
done
|
||||
html+= </ul>
|
||||
echo $html
|
Reference in New Issue
Block a user