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
if pushd ~/Git; then
if cd "${1:-~/Git}"; then
for repo in *; do
pushd "$repo"
cd "$repo"
git pull
popd
cd ..
done
popd
elif [ -z "$1" ]; then
exec "$0" ~/git
else
>&2 echo "Can't find your git folder!"
fi