diff --git a/build.sh b/build.sh
index 1323fe9..afafd69 100755
--- a/build.sh
+++ b/build.sh
@@ -28,7 +28,7 @@ cmark --unsafe index.md >> "$index"
echo -n "
Lista de páginas
" >> "$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"