diff --git a/check_script.sh b/verify_licenses_script.sh similarity index 85% rename from check_script.sh rename to verify_licenses_script.sh index 7268150f..98666e8e 100755 --- a/check_script.sh +++ b/verify_licenses_script.sh @@ -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