Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit 5ab6514

Browse files
committed
Rename the script and function to clarify their purpose
1 parent 1948946 commit 5ab6514

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
check_directory() {
3+
check_license_in_file() {
44
if ! head -n 20 $FILE | grep -q "Permission is hereby granted, free of charge, to any person obtaining a copy"
55
then
66
echo "$FILE does not contain a current copyright header"
@@ -9,7 +9,7 @@ check_directory() {
99

1010
for FILE in $(find owncloudComLibrary/src -name "*.java" -o -name "*.kt")
1111
do
12-
check_directory
12+
check_license_in_file
1313
done
1414

1515
./gradlew ktlintFormat

0 commit comments

Comments
 (0)