diff options
author | Que Quotion | 2019-11-01 12:49:26 +0900 |
---|---|---|
committer | Que Quotion | 2019-11-01 12:50:17 +0900 |
commit | 6c088a21dd360852e6013d83debe467047626821 (patch) | |
tree | 9e498ac330e55aa37b68b3868fedcff2e3fbcdfd /upx.sh.in | |
parent | 7c79bfe21813f5403980a5aec5138fd6c6ae0d01 (diff) | |
download | aur-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 'upx.sh.in')
-rw-r--r-- | upx.sh.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/upx.sh.in b/upx.sh.in index 6d03d1fb7cd7..43c33d37fc60 100644 --- a/upx.sh.in +++ b/upx.sh.in @@ -19,7 +19,7 @@ tidy_upx() { msg2 "$(gettext "Compressing binaries with %s...")" "UPX" local binary find . -type f -perm -u+w 2>/dev/null | while read -r binary ; do - [ $(jobs -p|wc -l) -gt $(nproc) ] && wait -n + [ $(jobs -p|wc -l) -gt $(getconf _NPROCESSORS_ONLN) ] && wait -n mime=$(file --brief --mime-type "$binary") case "$mime" in application/x-executable | application/x-dosexec ) |