7 ms·
Let's try to avoid using a hammer on anything that resembles a nail: https://github.com/valvesoftware/steam-for-linux/issues/3671 https://github.com/valvesoftwa
by michaelmcmillan 7y ago
Let's try to avoid using a hammer on anything that resembles a nail: https://github.com/valvesoftware/steam-for-linux/issues/3671 https://github.com/valvesoftware/steam-for-linux/issues/3671
- dymk 7y agoHow is that related to the article aside from "both involve bash"?
- pmarreck 7y agoIt's because rm -rf "$STEAMROOT/"* will evaluate as rm -rf "/"* if $STEAMROOT for some reason is blank or unset, which is what happened here. (As someone in that discussion mentioned, a little more Bash knowledge might have suggested using rm -rf "${STEAMROOT:?}/"* instead, to force it to (at least) error if it is empty or unset.)
- dymk 7y agoSo literally the only thing in common with the article is that they involve bash
- michaelmcmillan 7y agoI can't help you if you don't see the connection.