From 0a8a598867ee97199ad1474af667172b7a9e36d1 Mon Sep 17 00:00:00 2001 From: Arnhoudt Date: Mon, 7 Sep 2020 23:33:06 +0200 Subject: [PATCH] Fixed shebang and changed the bash4 lowercase command -> tr command --- src/new_module.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/new_module.sh b/src/new_module.sh index c96eef1..899640e 100755 --- a/src/new_module.sh +++ b/src/new_module.sh @@ -1,4 +1,4 @@ -#/bin/bash +#!/bin/bash # "Bash strict mode", see http://redsymbol.net/articles/unofficial-bash-strict-mode/ set -euo pipefail @@ -21,7 +21,7 @@ if [[ $module_name == *%* ]]; then fi # Determine a "clean" module name: lowercase, no spaces -module="${module_name,,}" +module="$(tr [A-Z] [a-z] <<< "$module_name")" module="${module// /_}" module="${module//\'/}"