mirror of
				https://github.com/owncloud/android-library.git
				synced 2025-10-31 02:17:41 +00:00 
			
		
		
		
	Rename the script and function to clarify their purpose
This commit is contained in:
		
							parent
							
								
									194894637e
								
							
						
					
					
						commit
						5ab6514164
					
				| @ -1,6 +1,6 @@ | |||||||
| #!/bin/bash | #!/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" |     if ! head -n 20 $FILE | grep -q "Permission is hereby granted, free of charge, to any person obtaining a copy" | ||||||
|     then |     then | ||||||
|         echo "$FILE does not contain a current copyright header" |         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") | for FILE in $(find owncloudComLibrary/src -name "*.java" -o -name "*.kt") | ||||||
| do | do | ||||||
|     check_directory |     check_license_in_file | ||||||
| done | done | ||||||
| 
 | 
 | ||||||
| ./gradlew ktlintFormat | ./gradlew ktlintFormat | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user