mirror of
				https://github.com/bensuperpc/dockcross.git
				synced 2025-11-04 01:46:24 +01:00 
			
		
		
		
	dockcross: Ensure exit code associated with run command is always returned
This commit is contained in:
		@@ -186,9 +186,15 @@ docker run $TTY_ARGS --name $CONTAINER_NAME \
 | 
				
			|||||||
    $USER_IDS \
 | 
					    $USER_IDS \
 | 
				
			||||||
    $FINAL_ARGS \
 | 
					    $FINAL_ARGS \
 | 
				
			||||||
    $FINAL_IMAGE "$@"
 | 
					    $FINAL_IMAGE "$@"
 | 
				
			||||||
 | 
					run_exit_code=$?
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Deleting the container while ignoring error is required because of
 | 
				
			||||||
 | 
					# https://circleci.com/docs/docker-btrfs-error/.
 | 
				
			||||||
 | 
					# See issue dockcross/dockcross#50 for more details.
 | 
				
			||||||
docker rm -f $CONTAINER_NAME > /dev/null || true
 | 
					docker rm -f $CONTAINER_NAME > /dev/null || true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					exit $run_exit_code
 | 
				
			||||||
 | 
					
 | 
				
			||||||
################################################################################
 | 
					################################################################################
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# This image is not intended to be run manually.
 | 
					# This image is not intended to be run manually.
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user