Skip to content

Commit 914f911

Browse files
committed
fix: io error github pt2
1 parent fc9c7b1 commit 914f911

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

www/fssg

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -624,10 +624,7 @@ if (location.hostname==="localhost"||location.hostname==="127.0.0.1"){
624624
')
625625
fi
626626

627-
tmp_content=$(mktemp)
628-
printf '%s\n' "$processed_content" >"$tmp_content"
629-
minify_and_write "$out_file" <"$tmp_content"
630-
rm -f "$tmp_content"
627+
echo "$processed_content" | minify_and_write "$out_file"
631628
log_verbose "Finished: $src_file -> $out_file"
632629
return 0
633630
}
@@ -666,7 +663,7 @@ build_site() {
666663
log_error "Failed to process: $f"
667664
exit 1
668665
fi
669-
) </dev/null &
666+
) </dev/null 2>/dev/null &
670667

671668
pids="$pids $!"
672669
running=$((running + 1))

0 commit comments

Comments
 (0)