|
|
|
|
|
by kazinator
4172 days ago
|
|
rm -rf "$STEAMROOT/"*
This is why serious bash scripts use set -u # trap uses of unset variables
Won't help with deliberately blank ones, of course.Scripting languages in which all variables are defined if you so much as breathe their names are such a scourge ... I did this once in a build script. It wiped out all of /usr/lib. Of course, it was running as root! That machine was saved by a sysadmin who had a similar installation; we copied some libs from his machine and everything was cool. |
|