]> git.apps.os.sepia.ceph.com Git - linux-firmware.git/commitdiff
Fix has_gnu_parallel function
authorJosh Boyer <jwboyer@kernel.org>
Tue, 7 Jan 2025 16:31:29 +0000 (11:31 -0500)
committerJosh Boyer <jwboyer@kernel.org>
Tue, 7 Jan 2025 17:30:24 +0000 (12:30 -0500)
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>
copy-firmware.sh

index c78c5bd19dc71b98f7a33078026944f9ef42ed10..e64b5677ab737dc4040627b9923d0a7e25c0885a 100755 (executable)
@@ -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