diff --git a/PKGBUILD b/PKGBUILD index 2ea35c7..922ed8f 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -26,9 +26,10 @@ build() { _jobs="$(nproc)" # may fail to compile on a high core count system - if [ "$_jobs" > "$_max_jobs" ] + # https://github.com/Netflix/vmaf/issues/1541 + if [ "$_jobs" -ge "$_max_jobs" ] then - local _jobs="$_max_jobs" + _jobs="$_max_jobs" printf '%s\n' "limiting the compilation jobs to ${_jobs}" fi