extract variables

This commit is contained in:
Jérémy Lecour 2023-01-04 09:19:47 +01:00 committed by Jérémy Lecour
parent 9ee784509d
commit c3f65a1722

View file

@ -196,9 +196,11 @@ local_tasks() {
## Dump file access control lists ## Dump file access control lists
# dump_facl # dump_facl
# Remove previous error files # Output error files content, if any
for error_file in $(find "${LOCAL_BACKUP_DIR}/" -type f -name '*.err' -print); do error_files=$(find "${LOCAL_BACKUP_DIR}/" -type f -name '*.err')
if [ $(stat -c "%s" "${error_file}") -gt 0 ]; then for error_file in ${error_files}; do
error_file_size=$(stat -c "%s" "${error_file}")
if [ ${error_file_size} -gt 0 ]; then
printf "### Content of %s ###\n" "${error_file}" >&2 printf "### Content of %s ###\n" "${error_file}" >&2
cat "${error_file}" >&2 cat "${error_file}" >&2
printf "########################################\n" >&2 printf "########################################\n" >&2