3 ms·
My favorite is: rm -rf ${DIR_NAME}/* Then you remember that DIR_NAME is undefined...
by cobbzilla 6y ago
My favorite is:
rm -rf ${DIR_NAME}/*
Then you remember that DIR_NAME is undefined...
- DoofusOfDeath 6y agoI typically put "set -o nounset" at the top of my Bash scripts.
- cobbzilla 6y agoMy solution is to always install safe-rm. It prevents a lot of dumb deletes.
- account42 6y agoValve did exactly that in Steam for Linux at some point. [0] [0] https://github.com/valvesoftware/steam-for-linux/issues/3671 https://github.com/valvesoftware/steam-for-linux/issues/3671