1
0
Fork 0
mirror of https://gitlab.com/niansa/simpsh-httpd.git synced 2025-03-06 20:53:36 +01:00

Little structural improvement

This commit is contained in:
niansa 2020-08-03 18:08:24 +02:00
parent 5331253809
commit 0d35ec2a9e

View file

@ -1,6 +1,5 @@
#! /bin/bash
# Dynamic HTML
echo '<html>
<head>
<title>'"${HTMLTITLE}"'</title>
@ -9,10 +8,10 @@ echo '<html>
<p>'"$URL"'</p>
<h2>Directory list:</h2><br />
<a href="../">..</a><br />' >> $OUTFILE
for i in $( ls "${FILE}" ); do
echo ' <a href="./'"${i}"'">'"${i}"'</a><br />' >> $OUTFILE
done
# Static HTML
echo ' </body>
</html>' >> $OUTFILE