all 49 comments

sorted by: hot top controversial new old
[–] 39 points 2 days ago (3 children)

that is why you don't run random install script as root

i hate that so many tools nowadays want you to curl | sh for installing

  • source
  • hideshow 6 child comments
  • [–] 50 points 3 days ago* (2 children)

    This entire thread is giving me flashbacks to my junior dev days and forgetting a where clause when updating/deleting database records

  • source
  • hideshow 4 child comments
  • [–] 16 points 3 days ago (1 child)

    We've all done that at some point.

    That sinking feeling when your quick update doesn't return immediately.

    Good to get into the habit of wrapping your queries in a begin transaction/rollback until you verify the result 😁

  • source
  • parent
  • hideshow 2 child comments
  • [–] 11 points 3 days ago*

    I was never able to fully form the habit with transactions. The guardrails I use are writing the where clause first and keeping my query tool in read-only mode for prod connections and only disabling it once I'm sure I need to make a change.

  • source
  • parent
  • [–] 151 points 3 days ago (2 children)
  • [–] 140 points 3 days ago (3 children)

    rm -rf "$STEAMROOT/"* could be evaluated as rm -rf "/"* if $STEAMROOT is empty

    Ah, good times.

  • source
  • parent
  • hideshow 6 child comments
  • [–] 30 points 3 days ago (2 children)

    Probably a good idea to enable the nounset shell option when shipping commercial-grade install scripts. 😅

  • source
  • parent
  • hideshow 4 child comments
  • [–] 7 points 3 days ago* (last edited 2 days ago)

    That really ought to have been the default behavior. Opting out only takes one or two extra characters. Well, three or four if you don't habitually bracket your variable names, which you should probably be doing anyways

  • source
  • parent
  • [–] 4 points 2 days ago (1 child)

    Or just include the trailing slash in $STEAMROOT, so that if the variable is empty, it will evaluate to rm -rf "" and do nothing.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 7 points 2 days ago

    That seems like a more error-prone solution than the shell option. That would make it evaluate to rm -rf * which would probably delete your home directory, I'm guessing. And also put the burden of knowing the slash needs to be included on something completely disconnected from the expression. Nah, don't do it like that.

  • source
  • parent
  • [–] 10 points 2 days ago

    This is from 15 years ago. How many more times will we have to see it?

  • source
  • [–] 24 points 3 days ago

    "Just a prank bro!"

  • source
  • [–] 8 points 2 days ago
    [–] 23 points 3 days ago (1 child)
  • [–] 12 points 3 days ago (2 children)

    What do you mean? Hitting space while typing out a path is very much a typo. Am I missing something?

  • source
  • parent
  • hideshow 4 child comments
  • [–] 8 points 3 days ago (1 child)

    yeah you missed the joke i guess

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 2 days ago

    I think I had accidentally deleted /bin with that script I had made when I was testing debian https://github.com/BlastboomStrice/3rdPartyAutoUpdater

  • source
  • [+] -20 points 3 days ago (3 children)

    That's what you get for using Ubuntu

  • source
  • hideshow 6 child comments
  • [–] 24 points 3 days ago (1 child)

    Kind of an asshole statement tbh

  • source
  • parent
  • hideshow 2 child comments
  • [+] -12 points 3 days ago (1 child)

    Ubuntu tries to become (or is already) the de facto standard. That is what assholes do.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 13 points 3 days ago* (1 child)

    We should probably burn down the homes of people who use it then /s

  • source
  • parent
  • hideshow 2 child comments
  • [–] 7 points 3 days ago (2 children)

    Honestly, I meant it for a joke, but people started taking it seriously, I don't know where to end this.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 6 points 3 days ago (1 child)

    Hmm alright. I too dislike some things about Ubuntu but on the other hand you cannot blame people (myself included) who either have tried other distros and had support issues and came back to Ubuntu based, or those who just want the easier route to begin with. Ubuntu-based seems to be a good compromise for many. I've also used arch and fedora and had more headaches and breakages on those. Also I literally have a laptop that gets supported on Ubuntu so it makes life easier all around. Fuck some of the things canonical does but I just do not want to spend time with things like fixing my wifi connection after running pacman -S install or whatever that command is.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 3 days ago* (1 child)

    Yeah, but I think forks of Ubuntu such as Mint or Zorin deserves more recognition as first Linux distro. Choosing Ubuntu just because everyone else is using just feels very wrong.

    I too got tired of using those niche distros and once settled on Solus (but now using NixOS for some reason).

  • source
  • parent
  • hideshow 2 child comments
  • [–] 9 points 3 days ago (3 children)

    Is ubuntu bad? I use mint as i am fairly new to linux.

  • source
  • parent
  • hideshow 6 child comments
  • [–] 22 points 3 days ago (1 child)

    Ubuntu is owned by Canonical, and they have been making some decisions that a lot of people in the community don't like, most notably, the enforcement of snaps (in a nutshell, the repos are proprietary and centralised), but they have been involved in various other corpo shenanigans as well

    But I don't think "X distro is bad, don't use it" is very useful unless it is dangerous or harmful to the user.

    Ubuntu (or the various other buntus) work for some people, and without them, far fewer people would use Linux. The benefit of Linux is the amount of choice you get and being able to easily switch between distros (you can even dual boot if you want!)

    So if you like Mint, stick with that. If somebody prefers the buntus, it's great as long as they are respectful to others!

    Distro wars are stupid

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 2 days ago

    Oh and BTW Mint is fine! It's based on Ubuntu sure, but actively undoes and strips out the crappy stuff Ubuntu adds.

    They also have Linux Mint Debian Edition as a backup in case Ubuntu goes really evil.

    -- Frost

  • source
  • parent
  • [–] 12 points 3 days ago

    It's not really bad. It's just kinda distasteful due to stuff like Snap packages and Canonical's position of privacy as a company. But it isn't really a bad distro if you ignore that stuff. If it works it works.

  • source
  • parent