Definitely don't check that a variable is non-empty before running
rm -rf ${VAR}/*
That's typically a great experience for shell scripts! rm -rf ${VAR}/*
That's typically a great experience for shell scripts!https://github.com/ValveSoftware/steam-for-linux/issues/3671
rm -rf -- "${VAR}"/*