mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 19:22:45 +00:00 
			
		
		
		
	 a56b3cbf7c
			
		
	
	
		a56b3cbf7c
		
	
	
	
	
		
			
			This needs '-o' to work correctly. Also update the shebang to bash in some scripts as shellcheck was complaining about pipefail not being a POSIX shell thing otherwise.
		
			
				
	
	
		
			16 lines
		
	
	
	
		
			437 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
	
		
			437 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| set -eo pipefail
 | |
| 
 | |
| script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
 | |
| cd "$script_path/.."
 | |
| 
 | |
| BAD_FILES=$(find Base/etc/ Base/res/ Base/www/ -type f -executable)
 | |
| 
 | |
| if [ -n "${BAD_FILES}" ]
 | |
| then
 | |
|     echo "These files are marked as executable, but are in directories that do not commonly"
 | |
|     echo "contain executables. Please double-check the permissions of these files:"
 | |
|     echo "${BAD_FILES}" | xargs ls -ld
 | |
|     exit 1
 | |
| fi
 |