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() {
106106 # If the variables are empty, it means we have the older format. Fall back to parsing that.
107107 if [[ -z " $bytes_transferred " && -z " $files_created " && -z " $files_deleted " ]]; then
108108 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 }' )
111111 fi
112112
113113 # Format the final output string
You can’t perform that action at this time.
0 commit comments