Skip to content

Commit

Permalink
src/winusb: copy_filesystem_files: Fix wrong location of popd
Browse files Browse the repository at this point in the history
Signed-off-by: 林博仁 <[email protected]>
  • Loading branch information
brlin-tw committed Jun 5, 2017
1 parent 5bac172 commit 3529a66
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/winusb
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,6 @@ copy_filesystem_files(){
-not -path "."\
-print0\
)
popd

local -i copied_size=0 percentage; while IFS="\0" read -r source_file; do
dest_file="${target_fs_mountpoint}/${source_file}"
Expand Down Expand Up @@ -835,6 +834,8 @@ copy_filesystem_files(){
echo -en "${percentage}%\r"
done < <(echo "${file_list}"); unset source_file dest_file source_file_size copied_size percentage percentage

popd

pulse on

return 0
Expand Down

0 comments on commit 3529a66

Please sign in to comment.