Problem
ScriptRewriter (used by RewriteBootstrapScriptsStep) rewrites build.cmd/build.ps1/build.sh but leaves behind legacy NUKE_ENTERPRISE_TOKEN feed-registration blocks (the nuke-enterprise NuGet source add/remove lines), which were already dead in NUKE. Migrated repos carry this dead code forward.
Outcome
fallout-migrate strips these obsolete NUKE_ENTERPRISE_TOKEN blocks from bootstrap scripts during rewrite, instead of preserving them.
Acceptance criteria
Notes
From #509 (review comment).
Problem
ScriptRewriter(used byRewriteBootstrapScriptsStep) rewritesbuild.cmd/build.ps1/build.shbut leaves behind legacyNUKE_ENTERPRISE_TOKENfeed-registration blocks (thenuke-enterpriseNuGet source add/remove lines), which were already dead in NUKE. Migrated repos carry this dead code forward.Outcome
fallout-migratestrips these obsoleteNUKE_ENTERPRISE_TOKENblocks from bootstrap scripts during rewrite, instead of preserving them.Acceptance criteria
ScriptRewriterremoves theNUKE_ENTERPRISE_TOKENconditional block (both.ps1and.shvariants) when presentNotes
From #509 (review comment).