From: Rudolf Polzer Date: Sat, 18 Sep 2010 11:17:46 +0000 (+0200) Subject: by default, rm untracked files X-Git-Tag: xonotic-v0.1.0preview~202^2~3 X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=commitdiff_plain;h=45604a50d9c66a4a0cd82ba0b8687644c92d3743 by default, rm untracked files --- diff --git a/all b/all index 9a5b07e3..1d359e8a 100755 --- a/all +++ b/all @@ -902,6 +902,7 @@ case "$cmd" in # usage: # ./all clean [-m] [-f | -fu | -fU] [-r] [-D] # ./all clean --reclone + found=false while :; do if [ x"$1" = x"--reclone" ]; then force=true @@ -933,8 +934,12 @@ case "$cmd" in else break fi + found=true shift done + if ! $found; then + rmuntracked=true + fi for d in $repos; do verbose cd "$d0/$d" if $gotoupstream; then