mirror of
https://git.proxmox.com/git/mirror_linux-firmware
synced 2025-05-29 16:06:58 +00:00
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:
parent
1b7d065adf
commit
af598a3f9b
@ -22,7 +22,7 @@ warn() {
|
|||||||
|
|
||||||
has_gnu_parallel() {
|
has_gnu_parallel() {
|
||||||
if command -v parallel > /dev/null; then
|
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
|
return 0
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user