From: Rudolf Polzer Date: Thu, 17 Jun 2010 12:28:54 +0000 (+0200) Subject: ./all each: new option -k "keep going" X-Git-Tag: xonotic-v0.1.0preview~419 X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=commitdiff_plain;h=61260f1659c03bcd7b547b7776f1ec8e5f5c0daf ./all each: new option -k "keep going" --- diff --git a/all b/all index 5831e460..0e794e47 100755 --- a/all +++ b/all @@ -547,9 +547,18 @@ case "$cmd" in "$@" ;; each|foreach) + keep_going=false + if [ x"$1" = x"-k" ]; then + keep_going=true + shift + fi for d in $repos; do if verbose cd "$d0/$d"; then - verbose "$@" + if $keep_going; then + verbose "$@" || true + else + verbose "$@" + fi cd "$d0" fi done