File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -106,8 +106,8 @@ format_backup_stats() {
106
106
# If the variables are empty, it means we have the older format. Fall back to parsing that.
107
107
if [[ -z " $bytes_transferred " && -z " $files_created " && -z " $files_deleted " ]]; then
108
108
bytes_transferred=$( echo " $rsync_output " | grep ' Total transferred file size:' | awk ' {gsub(/,/, ""); print $5}' )
109
- files_created=$( echo " $rsync_output " | grep ' Number of created files:' | awk ' {print $4 }' )
110
- files_deleted=$( echo " $rsync_output " | grep ' Number of deleted files:' | awk ' {print $4 }' )
109
+ files_created=$( echo " $rsync_output " | grep ' Number of created files:' | awk ' {print $5 }' )
110
+ files_deleted=$( echo " $rsync_output " | grep ' Number of deleted files:' | awk ' {print $5 }' )
111
111
fi
112
112
113
113
# Format the final output string
You can’t perform that action at this time.
0 commit comments