Skip to content

Commit

Permalink
ci: another approach
Browse files Browse the repository at this point in the history
  • Loading branch information
karl-cardenas-coding committed Jun 26, 2024
1 parent 5d86f71 commit 711381e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/check_rule.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ failed_tests=0
get_last_directory_name() {
dir_path=$1
base_name=$(basename "$dir_path")
capitalized_name="$(echo "${base_name:0:1}" | tr '[:lower:]' '[:upper:]')${base_name:1}"
first_char=$(echo "$base_name" | cut -c1 | tr '[:lower:]' '[:upper:]')
rest_chars=$(echo "$base_name" | cut -c2-)
capitalized_name="${first_char}${rest_chars}"
echo "$capitalized_name"
}

# This function extracts the first folder name (package name) from a given path.
get_package_name() {
dir_path=$1
Expand Down

0 comments on commit 711381e

Please sign in to comment.