Skip to content

Commit

Permalink
Update gen_html_index.sh to not link to README.md since it is included
Browse files Browse the repository at this point in the history
  • Loading branch information
NiKiZe committed Aug 3, 2021
1 parent e2959ab commit 8ab49db
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gen_html_index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ for f in "${files[@]}"; do

fsize=$(numfmt --to=iec --suffix=B --padding=6 $(stat --printf="%s" $f))
fdate=$(stat --printf="%.19y" $f)
if file -b $f | grep -q ASCII; then
if [ $f == README.md ]; then
echo "$fsize $fdate $f"
elif file -b $f | grep -q ASCII; then
echo "$fsize $fdate <a href=\"$f\">$f</a>"
else
echo "$fsize $fdate $f"
Expand Down

0 comments on commit 8ab49db

Please sign in to comment.