If CONCURRENCY_LEVEL was set, the script would log a concurrency level
even if the parallel command was not available. Not log if parallel is
not available and set concurrency to 1.
BUILT_COCCI_FILES=""
fi
-if [ -z "$CONCURRENCY_LEVEL" ]; then
+if ! command -v parallel > /dev/null; then
+ echo "Concurrency disabled, command 'parallel' not available"
+ CONCURRENCY_LEVEL=1
+elif [ -z "$CONCURRENCY_LEVEL" ]; then
+ echo "No concurrency"
CONCURRENCY_LEVEL=1
- echo "No concurrency"
else
echo "Using concurrency level $CONCURRENCY_LEVEL"
fi