No romperse con archivos con espacios en el nombre

This commit is contained in:
Cat /dev/Nulo 2021-10-11 16:10:08 -03:00
parent 9affac5109
commit 20734fcb66

View file

@ -28,7 +28,7 @@ cmark --unsafe index.md >> "$index"
echo -n "<h2>Lista de páginas</h2><ul>" >> "$index"
for file in *.md; do
test "$(basename $file)" = index.md && continue
test "$(basename "$file")" = index.md && continue
title="$(basename "$file" .md)"
outfile="$outdir/$title.html"
template "$title" "$file" > "$outfile"