From 5ab6514164c721266c37c226c2c1ae984214bfc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Abel=20Garci=CC=81a=20de=20Prada?= Date: Thu, 10 Mar 2022 09:45:20 +0100 Subject: [PATCH] Rename the script and function to clarify their purpose --- check_script.sh => verify_licenses_script.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename check_script.sh => verify_licenses_script.sh (85%) 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