1
0
Fork 0
forked from ahurac/dotfiles

Corerction : ré-écriture du script de mise à jour des dépôts Git

This commit is contained in:
Hippolyte Chauvin 2023-06-04 19:44:09 +02:00
parent c858e72db1
commit 4842ca9eb7

View file

@ -1,10 +1,13 @@
#!/bin/sh #!/bin/sh
if pushd ~/Git; then if cd "${1:-~/Git}"; then
for repo in *; do for repo in *; do
pushd "$repo" cd "$repo"
git pull git pull
popd cd ..
done done
popd elif [ -z "$1" ]; then
exec "$0" ~/git
else
>&2 echo "Can't find your git folder!"
fi fi