chore: Remove title case (#177)

This commit is contained in:
Gerald Pinder 2024-05-05 00:47:54 -04:00 committed by GitHub
parent c2abf3fcb8
commit 7ce0ad7cf8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,16 +17,12 @@ print_banner() {
printf '%*.*s%s%*.*s\n' 0 "$padlen" "$padding" "$text" 0 "$padlen" "$padding"
}
title_case() {
echo $(tr '[:lower:]' '[:upper:]' <<< ${1:0:1})${1:1}
}
module="$1"
params="$2"
script_path="/tmp/modules/${module}/${module}.sh"
print_banner "Start $(title_case ${module}) Module"
print_banner "Start '${module}' Module"
chmod +x ${script_path}
${script_path} "${params}"
print_banner "End $(title_case ${module}) Module"
print_banner "End '${module}' Module"
ostree container commit