diff options
| author | Miquel Sabaté Solà <mssola@mssola.com> | 2026-05-11 23:10:46 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <mssola@mssola.com> | 2026-05-11 23:12:31 +0200 |
| commit | 4b2112bf35f0aef75f4f580f197956e5ec638d68 (patch) | |
| tree | 7e0d6a595d620739ee3f8effb7719c7e5ceda9cc /bin/fetch-email | |
| parent | 3c3f384776e07845eda39cc09d56570575cd5f6d (diff) | |
| download | dotfiles-4b2112bf35f0aef75f4f580f197956e5ec638d68.tar.gz dotfiles-4b2112bf35f0aef75f4f580f197956e5ec638d68.zip | |
fetch-email: ditch GNU parallel as it's bailing on me
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Diffstat (limited to 'bin/fetch-email')
| -rwxr-xr-x | bin/fetch-email | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/bin/fetch-email b/bin/fetch-email index f7ac944..d8ace16 100755 --- a/bin/fetch-email +++ b/bin/fetch-email @@ -14,14 +14,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -if ! command -v parallel &> /dev/null; then - echo "fetch-email (error): you need 'parallel' installed." - exit 1 -fi - if ! command -v mbsync &> /dev/null; then echo "fetch-email (error): you need 'mbsync' installed." exit 1 fi -grep '^Channel' ~/.mbsyncrc | awk '{ print $2; }' | sort | uniq | parallel -j12 mbsync {}
\ No newline at end of file +grep '^Channel' ~/.mbsyncrc | awk '{ print $2; }' | sort | uniq | xargs -n 1 -P 12 mbsync |
