mirror of
				https://github.com/f-droid/fdroidserver.git
				synced 2025-11-04 06:30:27 +03:00 
			
		
		
		
	Properly catch return codes since -x is no longer used
This commit is contained in:
		
							parent
							
								
									d3faacf9b0
								
							
						
					
					
						commit
						c91fca7bb4
					
				
					 1 changed files with 12 additions and 10 deletions
				
			
		| 
						 | 
				
			
			@ -37,20 +37,22 @@ else
 | 
			
		|||
fi
 | 
			
		||||
 | 
			
		||||
# If there are python errors or warnings, print them and fail.
 | 
			
		||||
$PYFLAKES $PY_FILES
 | 
			
		||||
$PEP8 --ignore=E123,E501 $PY_FILES
 | 
			
		||||
 | 
			
		||||
if ! $PYFLAKES $PY_FILES; then
 | 
			
		||||
	err "pyflakes tests failed!"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if ! $PEP8 --ignore=E123,E501 $PY_FILES; then
 | 
			
		||||
	err "pep8 tests failed!"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#------------------------------------------------------------------------------#
 | 
			
		||||
# check the syntax of included shell scripts
 | 
			
		||||
# check the syntax of included shell scripts with bash -n
 | 
			
		||||
 | 
			
		||||
# use bash to check that the syntax is correct
 | 
			
		||||
for f in $SH_FILES; do
 | 
			
		||||
    if bash -n $f; then
 | 
			
		||||
        : # success! do nothing
 | 
			
		||||
    else
 | 
			
		||||
        err "FAILED!"
 | 
			
		||||
    fi
 | 
			
		||||
	if ! bash -n $f; then
 | 
			
		||||
		err "bash tests failed!"
 | 
			
		||||
	fi
 | 
			
		||||
done
 | 
			
		||||
 | 
			
		||||
exit 0
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue