Fixed shebang and changed the bash4 lowercase command -> tr command

This commit is contained in:
Arnhoudt 2020-09-07 23:33:06 +02:00
parent d44bc46794
commit 0a8a598867

View file

@ -1,4 +1,4 @@
#/bin/bash #!/bin/bash
# "Bash strict mode", see http://redsymbol.net/articles/unofficial-bash-strict-mode/ # "Bash strict mode", see http://redsymbol.net/articles/unofficial-bash-strict-mode/
set -euo pipefail set -euo pipefail
@ -21,7 +21,7 @@ if [[ $module_name == *%* ]]; then
fi fi
# Determine a "clean" module name: lowercase, no spaces # Determine a "clean" module name: lowercase, no spaces
module="${module_name,,}" module="$(tr [A-Z] [a-z] <<< "$module_name")"
module="${module// /_}" module="${module// /_}"
module="${module//\'/}" module="${module//\'/}"