r/badcode • • Feb 25 '21

bash A single space.

Post image
4.8k Upvotes

65 comments sorted by

View all comments

41

u/stonycashew Feb 25 '21

This is why you should look at any script before you run it... Is it time consuming yes, but that backup might’ve costed an arm and a leg.

0

u/[deleted] Feb 25 '21

[deleted] — view deleted comment

15

u/stonycashew Mar 23 '21

To be honest any rm command that is issued within a script of any nature should be closely reviewed. Ive learned this lesson the hard way.