Here are some propositions from when I run the scripts.
adding -p for mkdir: useful if you run the script and the downloaded stopped in the middle, you simply rerun the script (otherwise, have to delete the directories)
replaced systemctl status node-exporter with systemctl is-actiave node-exporter: to avoid having to break the script (with ctrl-c) when doing the install script.
added a break in a case so we don't have an infinite loop
Propositions
Here are some propositions from when I run the scripts.