From: Chris Koeritz Date: Mon, 13 Feb 2012 05:17:05 +0000 (-0500) Subject: nice mod that clears out any generated files before doing the bootstrap. X-Git-Tag: 2.140.90~1610 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=3d349acae798c03a793f1d346303e50b724e2a81;p=feisty_meow.git nice mod that clears out any generated files before doing the bootstrap. --- diff --git a/scripts/core/bootstrap_shells.sh b/scripts/core/bootstrap_shells.sh index 6f052e72..40836154 100644 --- a/scripts/core/bootstrap_shells.sh +++ b/scripts/core/bootstrap_shells.sh @@ -25,6 +25,8 @@ export FEISTY_MEOW_GENERATED="$HOME/.zz_auto_gen" if [ ! -d "$FEISTY_MEOW_GENERATED" ]; then mkdir "$FEISTY_MEOW_GENERATED" fi +# make toast out of generated files right away, but leave any custom scripts. +find "$FEISTY_MEOW_GENERATED" -maxdepth 1 -type f -exec rm -f "{}" ';' &>/dev/null if [ ! -d "$FEISTY_MEOW_GENERATED/custom" ]; then mkdir "$FEISTY_MEOW_GENERATED/custom" fi