summarylogtreecommitdiffstats
path: root/optipng.sh.in
diff options
context:
space:
mode:
authorQue Quotion2019-11-01 12:49:26 +0900
committerQue Quotion2019-11-01 12:50:17 +0900
commit6c088a21dd360852e6013d83debe467047626821 (patch)
tree9e498ac330e55aa37b68b3868fedcff2e3fbcdfd /optipng.sh.in
parent7c79bfe21813f5403980a5aec5138fd6c6ae0d01 (diff)
downloadaur-6c088a21dd360852e6013d83debe467047626821.tar.gz
In theory, some systems may not have nproc; getconf _NPROCESSORS_ONLN is allegedly more portable. Update .SRCINFO for new hashsums!
Diffstat (limited to 'optipng.sh.in')
-rw-r--r--optipng.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/optipng.sh.in b/optipng.sh.in
index 39136cb167d..d82008556b5 100644
--- a/optipng.sh.in
+++ b/optipng.sh.in
@@ -19,7 +19,7 @@ tidy_optipng() {
msg2 "$(gettext "Optimizing PNG images...")"
local png
find . -type f -iname "*.png" 2>/dev/null | while read -r png ; do
- [ $(jobs -p|wc -l) -gt $(nproc) ] && wait -n
+ [ $(jobs -p|wc -l) -gt $(getconf _NPROCESSORS_ONLN) ] && wait -n
if [[ $(file --brief --mime-type "$png") = 'image/png' ]]; then
{ optipng "${OPTIPNGFLAGS[@]}" "$png" &>/dev/null ||
warning "$(gettext "Could not optimize PNG image : %s")" "${png/$pkgdir\//}"; } &