From c38df189ecb5edd70c1559bd84dfb234a3b910a0 Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Tue, 7 Jan 2020 11:08:30 +0100 Subject: [PATCH] Add recursive fetch script --- bin/_fetchdir | 3 +++ bin/rfetch | 3 +++ 2 files changed, 6 insertions(+) create mode 100755 bin/_fetchdir create mode 100755 bin/rfetch diff --git a/bin/_fetchdir b/bin/_fetchdir new file mode 100755 index 0000000..383843e --- /dev/null +++ b/bin/_fetchdir @@ -0,0 +1,3 @@ +echo "Fetching $1" +cd $1 +git fetch diff --git a/bin/rfetch b/bin/rfetch new file mode 100755 index 0000000..778c8a5 --- /dev/null +++ b/bin/rfetch @@ -0,0 +1,3 @@ +find . -type d -name '.git' \ +| sed 's/\/\.git$//' \ +| xargs -P $(nproc) -I % _fetchdir %