dotfiles/share/updateall/commands.d/git
2023-04-13 00:25:00 +02:00

14 lines
207 B
Text

if [[ -d ~/Git ]]; then
pushd "${HOME}/Git" > /dev/null
for repo in ./*; do
cd "$repo"
echo
basename "$repo"
git pull
cd ..
done
popd > /dev/null
else
>&2 echo "\"~/Git\" does not exist!"
fi