1
0
Fork 0
forked from ahurac/dotfiles

Réécriture de la liste de commandes à exécuter pour mettre à jour les repo Git

This commit is contained in:
Hippolyte Chauvin 2023-05-03 08:06:35 +02:00
parent 98f29b5f47
commit 2cf86a8fe4

View file

@ -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