Skip to content

Commit fc9c7b1

Browse files
committed
fix: io error github
1 parent aca16ad commit fc9c7b1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

www/fssg

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

627-
echo "$processed_content" | minify_and_write "$out_file"
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"
628631
log_verbose "Finished: $src_file -> $out_file"
629632
return 0
630633
}

0 commit comments

Comments
 (0)