dotfiles/share/updateall/commands.d/git

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