Hmmm, no thank you I think I don't want to run this code

sudo rm -rf "${studio_path}/" -mindepth 1 -maxdepth 1 ! -name "ldraw" -exec rm -rf {} +

(Bricklink studio /scripts/preinstall)

@adamshostack I'm confused. That looks like a find command except it starts with rm -rf. Probably either an arcane trick or a joke I'm missing here.

@internic It does, doesn't it? Also, why the heck does it need to be root?

@adamshostack I am often dismayed by the amount of stuff that gets run as root for software installs and updates (often because everything under /usr is owned by root). For that matter, I'm frustrated by the amount of open-source software whose documentation says "just go to the terminal and run 'sudo <arcane series of commands>'". That's a really bad habit for users to be in, and for my part I'm certain that a sufficiently clever person could slip something malicious past me if they wanted to.

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.