Skip to content

Commit

Permalink
Revert "src/winusb: cp_fs_files: Use Here Strings instead of process …
Browse files Browse the repository at this point in the history
…substitution"

Sadly this doesn't fix the issue
  • Loading branch information
brlin-tw committed Jun 5, 2017
1 parent 9dab69d commit 33cd532
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/winusb
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,6 @@ copy_filesystem_files(){
-print0\
)

# BASHDOC: Basic Shell Features » Redirections » Here Strings
local -i copied_size=0 percentage; while IFS='' read -r -d '' source_file; do
dest_file="${target_fs_mountpoint}/${source_file}"

Expand Down Expand Up @@ -834,7 +833,7 @@ copy_filesystem_files(){
((copied_size = copied_size + source_file_size))
((percentage = (copied_size * 100) / total_size))
echo -en "${percentage}%\r"
done <<< "${file_list}"; unset source_file dest_file source_file_size copied_size percentage percentage
done < <(echo "${file_list}"); unset source_file dest_file source_file_size copied_size percentage percentage

popd >/dev/null

Expand Down

0 comments on commit 33cd532

Please sign in to comment.