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
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.
https://github.com/ValveSoftware/steam-for-linux/issues/3671
Another classic
Ah, good times.
I love how someone committed
# scary!above it rather than fixing it.Probably a good idea to enable the
nounsetshell option when shipping commercial-grade install scripts. 😅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
Or just include the trailing slash in
$STEAMROOT, so that if the variable is empty, it will evaluate torm -rf ""and do nothing.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.Wow.
That’s a nuclear grade ‘oopsie’ right there hahaha!
Jeez. Didn’t hear about that one, back in the day… wow.
Linux Gaming has had some interesting moments