darkrc/bin/farfetched

6 lines
165 B
Text
Raw Normal View History

2020-01-07 16:08:33 +00:00
#!/bin/sh
2020-01-07 16:15:27 +00:00
if [ -d "$1" ]; then cd $1; fi
2020-01-07 10:08:30 +00:00
find . -type d -name '.git' \
| sed 's/\/\.git$//' \
2020-01-07 16:08:33 +00:00
| xargs -P $(nproc) -I % sh -c "echo 'Fetching %...'; cd %; git fetch"