From af598a3f9be60b586cddf20bfa85bc2c33994aba Mon Sep 17 00:00:00 2001 From: Josh Boyer Date: Tue, 7 Jan 2025 11:31:29 -0500 Subject: [PATCH] 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 Signed-off-by: Josh Boyer --- copy-firmware.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copy-firmware.sh b/copy-firmware.sh index c78c5bd1..e64b5677 100755 --- a/copy-firmware.sh +++ b/copy-firmware.sh @@ -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