1
0
mirror of https://github.com/owncloud/android-library.git synced 2025-06-07 07:56:19 +00:00

Rename the script and function to clarify their purpose

This commit is contained in:
Abel García de Prada 2022-03-10 09:45:20 +01:00
parent 194894637e
commit 5ab6514164

View File

@ -1,6 +1,6 @@
#!/bin/bash
check_directory() {
check_license_in_file() {
if ! head -n 20 $FILE | grep -q "Permission is hereby granted, free of charge, to any person obtaining a copy"
then
echo "$FILE does not contain a current copyright header"
@ -9,7 +9,7 @@ check_directory() {
for FILE in $(find owncloudComLibrary/src -name "*.java" -o -name "*.kt")
do
check_directory
check_license_in_file
done
./gradlew ktlintFormat