gnuastro-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnuastro-commits] master 477ce6dd: developer-build.sh: given value to -


From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master 477ce6dd: developer-build.sh: given value to --jobs properly used
Date: Tue, 2 May 2023 11:29:02 -0400 (EDT)

branch: master
commit 477ce6ddb2e8a23fa21fa0dd6c1a395ad5d36cd6
Author: Mohammad Akhlaghi <mohammad@akhlaghi.org>
Commit: Mohammad Akhlaghi <mohammad@akhlaghi.org>

    developer-build.sh: given value to --jobs properly used
    
    Until now, if the user had given a value to the '--jobs' (or '-j') option,
    the script would (mistakenly!) over-write it to '1'! No matter what the
    given value was!!!
    
    With this commit, the wrong 'else' statement was corrected (so the value
    given by the user is used).
---
 developer-build | 2 --
 1 file changed, 2 deletions(-)

diff --git a/developer-build b/developer-build
index 9a4929a2..2c0b0d27 100755
--- a/developer-build
+++ b/developer-build
@@ -399,8 +399,6 @@ if [ $jobs = 0 ]; then
         jobs=$(sysctl -a | awk '/^hw\.ncpu/{print $2}')
         if [ x"$jobs" = x ]; then jobs=1; fi
     fi
-else
-    jobs=1
 fi
 
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]