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:
David Moreau-Simard 2016-12-05 10:20:54 -05:00
parent 6f1aa6133a
commit 15f172a465

View File

@ -26,7 +26,7 @@ source $SCRIPT_DIR/functions
print_header 'Copy logs into workspace'
LOG_DIR=$WORKSPACE/logs
mkdir $WORKSPACE/logs
[[ ! -d "${WORKSPACE}/logs" ]] && mkdir -p ${WORKSPACE}/logs
# PROJECTS
# - for each entry, we will probe /etc/${project} and /var/log/${project}