]> Sergey Matveev's repositories - feeder.git/blob - cmd/do-in-parallel
3221422247bcde95b71887a5bc8c901b385c5f96
[feeder.git] / cmd / do-in-parallel
1 #!/usr/bin/env zsh
2 set -e
3 cmds=$0:h:a
4 . $cmds/env.rc
5 log=$1.log
6 ${=PARALLEL} --jobs ${(P)2} --joblog $log $3 ::: feeds/* || rc=$?
7 fpath=($cmds/functions.zsh $fpath)
8 autoload print-joblog-failed
9 print-joblog-failed < $log
10 exit ${rc:-0}