diff "${diff_args[@]}" ${config_file} ${precedent_file} >${diff_file}
if [ "$?" -ne "0" ]; then
- log_msg="- There is a difference! Create backup..."
+ log_msg=${diff_file}" - There is a difference! Create backup..."
if [ -t 1 ] && $DEBUG_OUT; then
section " CREATE BACKUP "
sleep 1
log_info "${log_msg}"
return 0
else
- log_msg="- The files are identical. No backup is required."
+ log_msg=${diff_file}" - The files are identical. No backup is required."
log_info "${log_msg}"
if [ -t 1 ] && $DEBUG_OUT; then
section " START CLEANUP "