Skip to content

Commit

Permalink
chore: Remove title case (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
gmpinder authored May 5, 2024
1 parent c2abf3f commit 7ce0ad7
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions scripts/run_module.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7ce0ad7

Please sign in to comment.