mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 19:17:13 -05:00 
			
		
		
		
	Fixes the shellcheck issues
This commit is contained in:
		
							parent
							
								
									537e7c63f4
								
							
						
					
					
						commit
						140e239bdb
					
				@ -37,7 +37,7 @@ wait_for_mariadb() {
 | 
			
		||||
	attempt_num=1
 | 
			
		||||
	max_attempts=5
 | 
			
		||||
 | 
			
		||||
	while ! </dev/tcp/$host/$port; do
 | 
			
		||||
	while ! true > /dev/tcp/$host/$port; do
 | 
			
		||||
 | 
			
		||||
		if [ $attempt_num -eq $max_attempts ]; then
 | 
			
		||||
			echo "Unable to connect to database."
 | 
			
		||||
@ -47,7 +47,7 @@ wait_for_mariadb() {
 | 
			
		||||
 | 
			
		||||
		fi
 | 
			
		||||
 | 
			
		||||
		attempt_num=$(expr "$attempt_num" + 1)
 | 
			
		||||
		attempt_num=$(("$attempt_num" + 1))
 | 
			
		||||
		sleep 5
 | 
			
		||||
	done
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user