forked from ahurac/dotfiles
Correction : simplification du script updateall git
This commit is contained in:
parent
e702086b2b
commit
90fb7b3f47
1 changed files with 1 additions and 3 deletions
|
@ -1,13 +1,11 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
if cd "${1:-${HOME}/Git}"; then
|
if cd ~/git; then
|
||||||
for repo in *; do
|
for repo in *; do
|
||||||
cd "$repo" || continue
|
cd "$repo" || continue
|
||||||
printf '\n%s\n' "$repo"
|
printf '\n%s\n' "$repo"
|
||||||
git pull
|
git pull
|
||||||
cd ..
|
cd ..
|
||||||
done
|
done
|
||||||
elif [ -z "$1" ]; then
|
|
||||||
exec "$0" ~/git
|
|
||||||
else
|
else
|
||||||
>&2 echo "Can't find your git folder!"
|
>&2 echo "Can't find your git folder!"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue