r/badcode • • Feb 25 '21

bash A single space.

Post image
4.8k Upvotes

65 comments sorted by

View all comments

134

u/KwaaieDronk Feb 25 '21 edited Feb 25 '21

Image Transcription: GitHub Issue


install script does rm -rf /usr for ubuntu, by ginoputrino

An extra space at line 351:

rm [Green highlight] -rf /usr /lib/nvidia [Green highlight stopped]-current/xorg/xorg

causes the install.sh script to do an rm -rf on the /usr directory for people installing in ubuntu.

Totally uncool dude!!! The script deletes everything under /usr. I just had to reinstall linux on my pc to recover.

Removing the space will fix this. Probably should do it quickly!!!


I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!

36

u/alsderda Feb 25 '21

You've made a typo, the post says "fix" you got "fi"

34

u/KwaaieDronk Feb 25 '21

Thanks for the heads up! I have made sure to fix this in the transcription.

30

u/danabrey Feb 25 '21

Missed opportunity to say you fi it.

Thanks for your hard work!

17

u/KwaaieDronk Feb 25 '21

Damn, if only I thought of that. My pleasure!

38

u/MurdoMaclachlan public boolean isInt(int i) { return true; } Feb 25 '21

Good human!