forked from ahurac/dotfiles
Corerction : ré-écriture du script de mise à jour des dépôts Git
This commit is contained in:
parent
c858e72db1
commit
4842ca9eb7
1 changed files with 7 additions and 4 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue