forked from ahurac/dotfiles
Réécriture de la liste de commandes à exécuter pour mettre à jour les repo Git
This commit is contained in:
parent
98f29b5f47
commit
2cf86a8fe4
1 changed files with 7 additions and 12 deletions
|
@ -1,14 +1,9 @@
|
|||
if [[ -d ~/Git ]]; then
|
||||
pushd "${HOME}/Git" > /dev/null
|
||||
for repo in ./*; do
|
||||
cd "$repo"
|
||||
echo
|
||||
basename "$repo"
|
||||
if pushd ~/Git; then
|
||||
for repo in *; do
|
||||
pushd "$repo"
|
||||
git pull
|
||||
cd ..
|
||||
popd
|
||||
done
|
||||
popd > /dev/null
|
||||
else
|
||||
>&2 echo "\"~/Git\" does not exist!"
|
||||
popd
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue