From 2cf86a8fe40545d737c066a22c48845b1a2f6ee8 Mon Sep 17 00:00:00 2001 From: Hippolyte Chauvin Date: Wed, 3 May 2023 08:06:35 +0200 Subject: [PATCH] =?UTF-8?q?R=C3=A9=C3=A9criture=20de=20la=20liste=20de=20c?= =?UTF-8?q?ommandes=20=C3=A0=20ex=C3=A9cuter=20pour=20mettre=20=C3=A0=20jo?= =?UTF-8?q?ur=20les=20repo=20Git?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- share/updateall/commands.d/git | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) 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