Skip to content

Commit fb97545

Browse files
committed
Find parallel in more locations
Some distributions append or prepend “moreutils” to the parallel command with a hyphen to distinguish it from the GNU version of parallel, such as Arch Linux [1]. To facilitate testing on such platforms (for example to test backup-utils with upcoming versions of rsync and newer Linux kernel versions), this adds support for finding parallel in those locations. [1] https://archlinux.org/packages/extra/x86_64/moreutils/
1 parent 4abe738 commit fb97545

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

share/github-backup-utils/ghe-backup-config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,10 @@ ghe_parallel_check() {
217217
GHE_PARALLEL_COMMAND="parallel"
218218
local x
219219
for x in \
220+
/usr/bin/parallel-moreutils \
220221
/usr/bin/parallel.moreutils \
221222
/usr/bin/parallel_moreutils \
223+
/usr/bin/moreutils-parallel \
222224
/usr/bin/moreutils.parallel \
223225
/usr/bin/moreutils_parallel \
224226
; do

test/testlib.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,8 +600,10 @@ setup_moreutils_parallel() {
600600
# We need moreutils parallel
601601
local x
602602
for x in \
603+
/usr/bin/parallel-moreutils \
603604
/usr/bin/parallel.moreutils \
604605
/usr/bin/parallel_moreutils \
606+
/usr/bin/moreutils-parallel \
605607
/usr/bin/moreutils.parallel \
606608
/usr/bin/moreutils_parallel \
607609
; do

0 commit comments

Comments
 (0)