mirror of
				https://github.com/ansible-collections/community.general.git
				synced 2025-10-26 05:50:36 -07:00 
			
		
		
		
	Also removed boilerplate from otherwise empty __init__.py files which should not contain any code (checked by empty-init script).
		
			
				
	
	
		
			17 lines
		
	
	
	
		
			318 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
	
		
			318 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
| #!/bin/sh
 | |
| 
 | |
| found=''
 | |
| 
 | |
| for path in lib/ansible/modules/ test/units/; do
 | |
|     files=$(find "${path}" -name __init__.py -size '+0')
 | |
| 
 | |
|     if [ "${files}" ]; then
 | |
|         echo "${files}"
 | |
|         found=1
 | |
|     fi
 | |
| done
 | |
| 
 | |
| if [ "${found}" ]; then
 | |
|     echo "One or more __init__.py file(s) listed above are non-empty."
 | |
|     exit 1
 | |
| fi
 |