2 ms·
In 2015, Steam's Linux updater included rm -rf "$STEAMROOT/"* and if $STEAMROOT wasn't set, that amounted to rm -rf *
by jameshart 5y ago
In 2015, Steam's Linux updater included
rm -rf "$STEAMROOT/"*
and if $STEAMROOT wasn't set, that amounted to
rm -rf *
- SAI_Peregrinus 5y agoThat's why I always use :? with rm in bash scripts. eg rm -rf "${STEAMROOT:?}/"* Will exit with error instead of running rm if STEAMROOT is unset. Even if used inside a conditional.
- remram 5y agoOr just `set -u`