Post #4061804
2026-07-24 11:41 UTC
Probably a good idea to enable the nounset shell option when shipping commercial-grade install scripts. 😅
Replies (2)
-
@fruitcantfly@programming.dev 2026-07-24 16:41
That really ought to have been the default behavior. Opting out only takes two extra characters. Well, four if you don’t habitually bracket your variable names, which you should probably be doing anyways
-
@OwOarchist@pawb.social 2026-07-24 20:21
Or just include the trailing slash in $STEAMROOT, so that if the variable is empty, it will evaluate to rm -rf “” and do nothing.