aboutsummaryrefslogtreecommitdiff
path: root/bin/fetch-email
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mssola@mssola.com>2026-05-11 23:10:46 +0200
committerMiquel Sabaté Solà <mssola@mssola.com>2026-05-11 23:12:31 +0200
commit4b2112bf35f0aef75f4f580f197956e5ec638d68 (patch)
tree7e0d6a595d620739ee3f8effb7719c7e5ceda9cc /bin/fetch-email
parent3c3f384776e07845eda39cc09d56570575cd5f6d (diff)
downloaddotfiles-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-xbin/fetch-email7
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