Check if report output folder exists before listing

This commit is contained in:
Marco Ferrari 2020-08-30 20:18:15 +02:00
parent 644e69131b
commit f90c3a289b

View file

@ -1070,9 +1070,13 @@ Reports() {
#############################################
# Print info on reports that were generated #
#############################################
if [ -d "${REPORT_OUTPUT_FOLDER}" ]; then
info "Contents of report folder:"
OUTPUT_CONTENTS_CMD=$(ls "${REPORT_OUTPUT_FOLDER}")
info "$OUTPUT_CONTENTS_CMD"
else
warn "Report output folder (${REPORT_OUTPUT_FOLDER}) does NOT exist."
fi
fi
################################