extract variables
This commit is contained in:
parent
9ee784509d
commit
c3f65a1722
|
@ -196,9 +196,11 @@ local_tasks() {
|
|||
## Dump file access control lists
|
||||
# dump_facl
|
||||
|
||||
# Remove previous error files
|
||||
for error_file in $(find "${LOCAL_BACKUP_DIR}/" -type f -name '*.err' -print); do
|
||||
if [ $(stat -c "%s" "${error_file}") -gt 0 ]; then
|
||||
# Output error files content, if any
|
||||
error_files=$(find "${LOCAL_BACKUP_DIR}/" -type f -name '*.err')
|
||||
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
|
||||
cat "${error_file}" >&2
|
||||
printf "########################################\n" >&2
|
||||
|
|
Loading…
Reference in a new issue