From 8c7446636b90b792f0867065bcc21fe7c71132ad Mon Sep 17 00:00:00 2001 From: Peter Marquardt Date: Fri, 29 Oct 2021 13:52:05 +0200 Subject: [PATCH] perf: fix -j parser - getopts used right --- perf.be0 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/perf.be0 b/perf.be0 index de87c1b4c..7af4656c3 100755 --- a/perf.be0 +++ b/perf.be0 @@ -1,6 +1,6 @@ #!/usr/bin/env beesh -# BEE_VERSION perf-5.10.47-0 +# BEE_VERSION perf-5.10.47-1 # more info: https://foo.bar.com @@ -17,7 +17,7 @@ OPT_ARCHIVE_BUILD=no # honor -j while getopts ":j:" bmf ${BEE_MAKEFLAGS[@]}; do - export JOBS=${OPTARG} + [ $bmf == 'j' ] && export JOBS=${OPTARG} done PATH=/usr/local/system/perl/bin:/usr/local/system/python2/bin:${PATH}