extract variables
This commit is contained in:
parent
9ee784509d
commit
c3f65a1722
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue