Quoting Daniel Gimpelevich (daniel@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx):
> > sudo if [ -f sources.list ]; then mv sources.list sources.list-$(date -I);
> > fi;
>
> This might very well be useful to anyone who gets the bright idea of
> running the script on anything other than a fresh install, where there are
> no bridges to burn. Still, anyone who has already tweaked their
> sources.list "just so" and wants to keep it will have the sense not to run
> the script on that system.
Yes. I don't want to be guilty of the "Bike Shed Effect", here
(http://linuxmafia.com/~rick/lexicon.html#bikeshed) in my haste to kibbitz,
but that one thing (the "rm") stuck out at me as something avoidably
dire and irreversible, if one _does_ happen to care about existing
sources.list contents and doesn't notice their deletion until too late.
|