Fix has_gnu_parallel function

Different distributions package the parallel command in ways that
generate differing output from --version.  Adjust the grep to look
'gnu parallel' case insensitive to account for these differences.

Reported-by: Genes Lists <lists@sapience.com>
Signed-off-by: Josh Boyer <jwboyer@kernel.org>
This commit is contained in:
Josh Boyer 2025-01-07 11:31:29 -05:00
parent 1b7d065adf
commit af598a3f9b

View File

@ -22,7 +22,7 @@ warn() {
has_gnu_parallel() {
if command -v parallel > /dev/null; then
if parallel --version | grep -Fq 'GNU Parallel'; then
if parallel --version | grep -Fqi 'gnu parallel'; then
return 0
fi
fi