]> git-server-git.apps.pok.os.sepia.ceph.com Git - linux-firmware.git/commit
copy-firmware: fail gracefully if moreutils parallel is installed
authorTimur Tabi <ttabi@nvidia.com>
Mon, 17 Mar 2025 19:01:02 +0000 (14:01 -0500)
committerTimur Tabi <ttabi@nvidia.com>
Mon, 17 Mar 2025 22:45:37 +0000 (17:45 -0500)
commitdd90046b703b1a6b32e0d87080ff64ca3645f14c
tree4906855870d091f42badfbddabe54a66b0dc6cb2
parent142c0a71434fa86d41d36f4b6e4cbba43c29b631
copy-firmware: fail gracefully if moreutils parallel is installed

The copy-firmware.sh script can use the "parallel" command to
parallelize some operations, but it needs the GNU version of
parallel.  There is another, simpler version of parallel that is part
of the moreutils package, but that version confuses the
has_gnu_parallel() function.  So first test to make sure that
the --version parameter is even recognized before trying to use it.

If in the future, moreutils parallel adds support for --version, this
script should still work because that version should never report
"GNU parallel".

Signed-off-by: Timur Tabi <ttabi@nvidia.com>
copy-firmware.sh