summarylogtreecommitdiffstats
path: root/svgo.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 /svgo.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 'svgo.sh.in')
-rw-r--r--svgo.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/svgo.sh.in b/svgo.sh.in
index 13b46c1fd16..9b306236ba1 100644
--- a/svgo.sh.in
+++ b/svgo.sh.in
@@ -19,7 +19,7 @@ tidy_svgo() {
msg2 "$(gettext "Optimizing SVG images...")"
local svg
find . -type f -iname "*.svg" 2>/dev/null | while read -r svg ; do
- [ $(jobs -p|wc -l) -gt $(nproc) ] && wait -n
+ [ $(jobs -p|wc -l) -gt $(getconf _NPROCESSORS_ONLN) ] && wait -n
if [[ $(file --brief --mime-type "$svg") = 'image/svg' ]]; then
{ svgo "${SVGOFLAGS[@]}" "$svg" &>/dev/null ||
warning "$(gettext "Could not optimize SVG image : %s")" "${svg/$pkgdir\//}"; } &