mirror of
				https://github.com/avatao-content/test-tutorial-framework
				synced 2025-11-04 02:22:55 +00:00 
			
		
		
		
	Update trap to show logs on error in bootstrap script
This commit is contained in:
		@@ -6,7 +6,7 @@ BASEIMAGE=baseimage-${TFW_POSTFIX}
 | 
				
			|||||||
BACKEND=test-${TFW_POSTFIX}
 | 
					BACKEND=test-${TFW_POSTFIX}
 | 
				
			||||||
FRONTEND=frontend-${TFW_POSTFIX}
 | 
					FRONTEND=frontend-${TFW_POSTFIX}
 | 
				
			||||||
LOGFILE=/tmp/bootstrap_tfw.log
 | 
					LOGFILE=/tmp/bootstrap_tfw.log
 | 
				
			||||||
trap 'echo "Something went wrong. Read the log az $LOGFILE"' ERR
 | 
					trap 'echo && echo "Error! Showing logs at $LOGFILE:" && cat $LOGFILE' ERR
 | 
				
			||||||
 | 
					
 | 
				
			||||||
: > $LOGFILE
 | 
					: > $LOGFILE
 | 
				
			||||||
echo -n "Cloning TFW repositories... "
 | 
					echo -n "Cloning TFW repositories... "
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user