Correction : simplification du script updateall git

This commit is contained in:
Hippolyte Chauvin 2023-07-15 14:56:37 +02:00
parent e702086b2b
commit 90fb7b3f47

View file

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