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>
main
Josh Boyer 2025-01-07 11:31:29 -05:00
parent 1b7d065adf
commit af598a3f9b
1 changed files with 1 additions and 1 deletions

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