mirror of
				https://github.com/jakeswenson/BitBetter.git
				synced 2025-10-31 12:53:25 +00:00 
			
		
		
		
	Fix exit status if no old images have been removed
This commit is contained in:
		
							parent
							
								
									8e8cbe1717
								
							
						
					
					
						commit
						8c3ba3c99a
					
				
							
								
								
									
										2
									
								
								build.sh
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								build.sh
									
									
									
									
									
								
							|  | @ -25,4 +25,4 @@ docker tag bitbetter/identity bitbetter/identity:$BW_VERSION | |||
| 
 | ||||
| # Remove old instances of the image after a successful build. | ||||
| ids=$( docker images bitbetter/* | grep -E -v -- "CREATED|latest|${BW_VERSION}" | awk '{ print $3 }' ) | ||||
| [ -n "$ids" ] && docker rmi $ids | ||||
| [ -n "$ids" ] && docker rmi $ids || true | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user