12 lines
195 B
Bash
Executable File
12 lines
195 B
Bash
Executable File
#!/usr/bin/env bash
|
|
cd /git
|
|
for i in $(~/all_repos.py "$URL" "$APIKEY")
|
|
do
|
|
if [ -e $(basename $i) ]
|
|
then
|
|
(cd $(basename $i) && git fetch --all)
|
|
else
|
|
git clone --bare $i
|
|
fi
|
|
done
|