diff --git a/share/updateall/commands.d/git b/share/updateall/commands.d/git index f987e57..f9281e1 100644 --- a/share/updateall/commands.d/git +++ b/share/updateall/commands.d/git @@ -1,14 +1,9 @@ -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!" +if pushd ~/Git; then + for repo in *; do + pushd "$repo" + git pull + popd + done + popd fi