Skip to content

Commit c2c7434

Browse files
committed
rename functions
1 parent 1c9b277 commit c2c7434

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/githooks/check-file-format.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ set -euo pipefail
4141
# ==============================================================================
4242

4343
function main() {
44-
if [[ ${#@} != 0 ]] && declare -f "main-tool-wrapper$1" >/dev/null 2>&1 ; then
45-
"main-tool-wrapper$1" "${@:2}"
44+
if [[ ${#@} != 0 ]] && declare -f "run-editorconfig$1" >/dev/null 2>&1 ; then
45+
"run-editorconfig$1" "${@:2}"
4646
else
4747
main-invocation "$@"
4848
fi
@@ -78,7 +78,7 @@ function main-invocation() {
7878
# Arguments (provided as environment variables):
7979
# dry_run_opt=[dry run option]
8080
# Arguments (provided as positional parameters): files to check
81-
function main-tool-wrapper--natively() {
81+
function run-editorconfig--natively() {
8282

8383
# shellcheck disable=SC2046,SC2086
8484
editorconfig \
@@ -89,7 +89,7 @@ function main-tool-wrapper--natively() {
8989
# Arguments (provided as environment variables):
9090
# dry_run_opt=[dry run option]
9191
# Arguments (provided as positional parameters): files to check
92-
function main-tool-wrapper--via-docker() {
92+
function run-editorconfig--via-docker() {
9393

9494
# shellcheck disable=SC1091
9595
source ./scripts/docker/docker.lib.sh

0 commit comments

Comments
 (0)