Skip to content

Commit

Permalink
src/winusb: copy_filesystem_files: Fix \0 for read delimiter
Browse files Browse the repository at this point in the history
Ref: BashFAQ/001 - Greg's Wiki <http://mywiki.wooledge.org/BashFAQ/001>
Signed-off-by: 林博仁 <[email protected]>
  • Loading branch information
brlin-tw committed Jun 5, 2017
1 parent 3529a66 commit f723e14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/winusb
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,7 @@ copy_filesystem_files(){
-print0\
)

local -i copied_size=0 percentage; while IFS="\0" read -r source_file; do
local -i copied_size=0 percentage; while IFS='' read -r -d '' source_file; do
dest_file="${target_fs_mountpoint}/${source_file}"

source_file_size=$(\
Expand Down

0 comments on commit f723e14

Please sign in to comment.