mirror of
				https://github.com/fradelg/docker-mysql-cron-backup.git
				synced 2025-11-04 05:58:58 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
	
		
			601 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
	
		
			601 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
# Makefile
 | 
						|
 | 
						|
all: test
 | 
						|
 | 
						|
test:
 | 
						|
	# Checking for syntax errors
 | 
						|
	set -e; for SCRIPT in *.sh; \
 | 
						|
	do \
 | 
						|
		sh -n $$SCRIPT; \
 | 
						|
	done
 | 
						|
 | 
						|
	# Checking for bashisms (currently not failing, but only listing)
 | 
						|
	SCRIPT="$$(which checkbashisms)"; if [ -n "$$SCRIPT" ] && [ -x "$$SCRIPT" ]; \
 | 
						|
	then \
 | 
						|
		$$SCRIPT *.sh || true; \
 | 
						|
	else \
 | 
						|
		echo "WARNING: skipping bashism test - you need to install checkbashism."; \
 | 
						|
	fi
 | 
						|
 | 
						|
	SCRIPT="$$(which shellcheck)"; if [ -n "$$SCRIPT" ] && [ -x "$$SCRIPT" ]; \
 | 
						|
	then \
 | 
						|
		$$SCRIPT *.sh || true; \
 | 
						|
	else \
 | 
						|
		echo "WARNING: skipping shellcheck test - you need to install shellcheck."; \
 | 
						|
	fi
 |