DEV Community

Discussion on: Bash scripting for everyday actions

Collapse
 
pavelloz profile image
Paweł Kowalski • Edited

In the old days when using SVN, i created a file called . (dot)
So i wanted to remove it, so i removed it... rm -rf . and commited.
Since SVN is not distributed, you can guess what happened :D

Collapse
 
carminezacc profile image
Carmine Zaccagnino

I bet it wasn't great fun when it happened! These kind of mistakes are fun to talk about sometimes (long after the fact) as much as they are annoying to deal with when they happen. Making mistakes is a great way to learn, no amount of warnings and cautionary tales will stop you from making mistakes at some point, while repeating such a mistake more than once is much more rare, in Italian we would say "Non tutti i mali vengono per nuocere", which means something along the lines of "Not all that's bad ends up hurting you in the long term".

Collapse
 
pavelloz profile image
Paweł Kowalski

Yeah, first couple seconds were not fun... :D

But it quickly turned out, we had a guru sysop that literally brought back backup within 10 minutes after calling him, so i could laugh pretty soon :D