From 90fb7b3f47fd86f1510104adeff932c1eeac655e Mon Sep 17 00:00:00 2001 From: Hippolyte Chauvin Date: Sat, 15 Jul 2023 14:56:37 +0200 Subject: [PATCH] Correction : simplification du script updateall git --- share/updateall/scripts.d/git | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/share/updateall/scripts.d/git b/share/updateall/scripts.d/git index a306d25..fcee02e 100755 --- a/share/updateall/scripts.d/git +++ b/share/updateall/scripts.d/git @@ -1,13 +1,11 @@ #!/bin/sh -if cd "${1:-${HOME}/Git}"; then +if cd ~/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