1
0
Fork 0
forked from ahurac/dotfiles
ahuarc-dotfiles/share/updateall/scripts.d/git
2023-06-16 11:45:48 +02:00

14 lines
262 B
Bash
Executable file

#!/bin/sh
if cd "${1:-${HOME}/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