nice mod that clears out any generated files before doing the bootstrap.
authorChris Koeritz <fred@gruntose.com>
Mon, 13 Feb 2012 05:17:05 +0000 (00:17 -0500)
committerChris Koeritz <fred@gruntose.com>
Mon, 13 Feb 2012 05:17:05 +0000 (00:17 -0500)
scripts/core/bootstrap_shells.sh

index 6f052e72a952738833feef7661fd3474480c0bcc..40836154eeb546b016ecb0b13944071b018c69a8 100644 (file)
@@ -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