Don't fail creating the log directory if it already exists
Using mkdir -p will prevent failing the log collection if the log directory happens to have been created already. Change-Id: Ia5692f115789f2be0909ba30ff72e02696c2a64b
This commit is contained in:
		@@ -26,7 +26,7 @@ source $SCRIPT_DIR/functions
 | 
				
			|||||||
print_header 'Copy logs into workspace'
 | 
					print_header 'Copy logs into workspace'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
LOG_DIR=$WORKSPACE/logs
 | 
					LOG_DIR=$WORKSPACE/logs
 | 
				
			||||||
mkdir $WORKSPACE/logs
 | 
					[[ ! -d "${WORKSPACE}/logs" ]] && mkdir -p ${WORKSPACE}/logs
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# PROJECTS
 | 
					# PROJECTS
 | 
				
			||||||
#  - for each entry, we will probe /etc/${project} and /var/log/${project}
 | 
					#  - for each entry, we will probe /etc/${project} and /var/log/${project}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user