very early career days, wrote a script that had rm -rf in it. I knew this was dangerous and so the script asked, 3 Times, if you were sure you were in the right place.
That was the problem, asking 3 times.. people just spammed enter x3 at that point in the script.
Someone using it came over to me one day.. 'hey, look, what going on with this system. I can't do ls ? '
There was no system, pretty much. The script had rm -rf'd while he was root and running the script from root.
The job of the script? installing and configuring the backups for a system. So yea, there were no backups for this system at this point in time !
That was the problem, asking 3 times.. people just spammed enter x3 at that point in the script.
Someone using it came over to me one day.. 'hey, look, what going on with this system. I can't do ls ? '
There was no system, pretty much. The script had rm -rf'd while he was root and running the script from root.
The job of the script? installing and configuring the backups for a system. So yea, there were no backups for this system at this point in time !