you are viewing a single comment's thread
view the rest of the comments
[–] 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