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