Skip to content

Commit

Permalink
src/winusb: Trap requires source/target_fs_mountpoint, move them to g…
Browse files Browse the repository at this point in the history
…lobal

Signed-off-by: 林博仁 <[email protected]>
  • Loading branch information
brlin-tw committed Jun 7, 2017
1 parent f10c8ea commit 8065a64
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/winusb
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ declare -i\

declare -ir DD_BLOCK_SIZE="((4 * 1024 * 1024))" # 4MiB

# NOTE: Need to pass to clean_mountpoints trap, so need to be global
declare\
source_fs_mountpoint\
target_fs_mountpoint

# FIXME: No documentation for this non-trivial parameter
declare -i pulse_current_pid=0

Expand All @@ -94,9 +99,6 @@ init(){
target_device\
target_partition

local\
source_fs_mountpoint\
target_fs_mountpoint
source_fs_mountpoint="/media/winusb_source_$(date +%s)_$$"
target_fs_mountpoint="/media/winusb_target_$(date +%s)_$$"

Expand Down

0 comments on commit 8065a64

Please sign in to comment.