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
|
if pushd ~/Git; then
|
||||||
pushd "${HOME}/Git" > /dev/null
|
for repo in *; do
|
||||||
for repo in ./*; do
|
pushd "$repo"
|
||||||
cd "$repo"
|
|
||||||
echo
|
|
||||||
basename "$repo"
|
|
||||||
git pull
|
git pull
|
||||||
cd ..
|
popd
|
||||||
done
|
done
|
||||||
popd > /dev/null
|
popd
|
||||||
else
|
|
||||||
>&2 echo "\"~/Git\" does not exist!"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue