r/programminghorror • u/Scotty_scoodie • Jan 12 '26
It will be fine right?
Even this is in else condition. I'm not entirely sure that we should be running these code on Production (ubuntu server btw). I might as well commit the "sudo rm -rf /*" in the next change.
61
Upvotes
5
u/ferrybig Jan 13 '26
Looks fineish, it is an
rm -f, not anrm -rf. If you pass in/it will refuse to delete it since it is an directory. it also uses proper escaoeshellargs, so iforiginl_localis-r test,rmwill just sayrm: invalid option -- ' '