From 86e3c4456159077ed201d267fc0b9fedcc9ee5b3 Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Tue, 7 Jan 2020 17:08:33 +0100 Subject: [PATCH] Make rfetch a single file --- bin/_fetchdir | 3 --- bin/rfetch | 3 ++- 2 files changed, 2 insertions(+), 4 deletions(-) delete mode 100755 bin/_fetchdir diff --git a/bin/_fetchdir b/bin/_fetchdir deleted file mode 100755 index 383843e..0000000 --- a/bin/_fetchdir +++ /dev/null @@ -1,3 +0,0 @@ -echo "Fetching $1" -cd $1 -git fetch diff --git a/bin/rfetch b/bin/rfetch index 778c8a5..c66cef3 100755 --- a/bin/rfetch +++ b/bin/rfetch @@ -1,3 +1,4 @@ +#!/bin/sh find . -type d -name '.git' \ | sed 's/\/\.git$//' \ -| xargs -P $(nproc) -I % _fetchdir % +| xargs -P $(nproc) -I % sh -c "echo 'Fetching %...'; cd %; git fetch"