Skip to content

Commit

Permalink
src/winusb: Rename copy_large_file, which should explain most of the …
Browse files Browse the repository at this point in the history
…idea

Signed-off-by: 林博仁 <[email protected]>
  • Loading branch information
brlin-tw committed Jun 8, 2017
1 parent 1e1aac9 commit 7328b19
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/winusb
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ copy_filesystem_files(){
if [ "${source_file_size}" -lt "${DD_BLOCK_SIZE}" ]; then
cp "${source_file}" "${dest_file}"
else
copy_file_with_progress_report\
copy_large_file\
"${source_file}"\
"${dest_file}"\
"${copied_size}"\
Expand Down Expand Up @@ -721,7 +721,7 @@ copy_filesystem_files(){
## Companion function of copy_filesystem_files for copying large files
## Copy source_file to dest_file, overwrite file if dest_file exists
## Also report copy_filesystem_files progress during operation
copy_file_with_progress_report(){
copy_large_file(){
util_check_function_parameters_quantity 4 "${#}"
local -r source_file="${1}"; shift
local -r dest_file="${1}"; shift
Expand Down Expand Up @@ -765,7 +765,7 @@ copy_file_with_progress_report(){
done; unset i copied_size_total percentage

return 0
}; declare -fr copy_file_with_progress_report
}; declare -fr copy_large_file

## As Windows 7's installation media doesn't place the required EFI
## bootloaders in the right location, we extract them from the
Expand Down

0 comments on commit 7328b19

Please sign in to comment.