1
0
Fork 0
forked from ahurac/dotfiles
ahuarc-dotfiles/share/updateall/commands.d/git

13 lines
212 B
Bash
Executable file

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