commit 00e9d71af31eab83912839ef8cd5857ea083bb13 from: roman zolotarev date: Thu Jan 22 10:15:27 2026 UTC update: hash_dir(): remove -P argument from xargs commit - 4912716080cc981b9e10048c4c0493c1c80487b3 commit + 00e9d71af31eab83912839ef8cd5857ea083bb13 blob - e769f117de025d598abc67114ea1168eb6bba24d blob + ec369dbd500170e1b720cbbc8b258fbabe92cc5e --- ssg.sh +++ ssg.sh @@ -39,7 +39,7 @@ hash_dir() { if test -z "$word"; then continue; fi && set -- "$@" "$word" done && set +f done - "$@" -print0 | xargs -r -0 -n256 -P "$NCPU" sha256 -r | sort_relative "$dir" + "$@" -print0 | xargs -r -0 -n256 sha256 -r | sort_relative "$dir" } # return find expression to exclude paths @@ -448,7 +448,6 @@ main() { SSG_DST='.ssg.dst' SSG_SITEMAP_XML='sitemap.xml' SSG_ROBOTS_TXT='robots.txt' - NCPU=$(sysctl -n hw.ncpu 2>/dev/null || getconf NPROCESSORS_ONLN) src_hash=$(hash_src) select_src_files "$src_hash" | prepend_kind | generate "$src_hash"