Skip to content

Commit

Permalink
src/winusb: check_is_target_device_busy: Fix func. param. catching
Browse files Browse the repository at this point in the history
Signed-off-by: 林博仁 <[email protected]>
  • Loading branch information
brlin-tw committed Jun 8, 2017
1 parent 2ba0a7b commit 811f3af
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 @@ -449,7 +449,7 @@ determine_target_parameters(){

check_is_target_device_busy(){
util_check_function_parameters_quantity 1 $#
local -r "${target_device}"
local -r target_device="${1}"

if [ "$(mount | grep -c "${target_device}")" -ne 0 ]; then
return 1
Expand Down

0 comments on commit 811f3af

Please sign in to comment.