No romperse con archivos con espacios en el nombre
This commit is contained in:
parent
9affac5109
commit
20734fcb66
1 changed files with 1 additions and 1 deletions
2
build.sh
2
build.sh
|
@ -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"
|
||||
|
|
Reference in a new issue