Skip to content
Snippets Groups Projects
Commit 5bd89c0b authored by Thibault Martin's avatar Thibault Martin
Browse files

Accept 'auto' and use [[ ... ]]

parent bef67ce7
No related branches found
No related tags found
No related merge requests found
......@@ -164,12 +164,12 @@ do
VERBOSE=yes
;;
"-j"|"--jobs")
if [[ $2 != \-* ]] && [ "$2" -ge 1 ]; then
if [[ $2 == "auto" ]] || ([[ $2 != \-* ]] && [[ $2 -ge 1 ]]); then
DUNE_OPT+="-j $2 "
shift
else
ErrorUsage \
"wrong argument ('$2') for '-j|--jobs', int >= 1 expected"
"wrong opt ('$2') for '-j|--jobs', value 'auto' or >= 1 expected"
fi
;;
"-l"|"--logs")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment