Skip to content

Commit

Permalink
Fix regression due to changing type of only_for_gui
Browse files Browse the repository at this point in the history
We changed only_for_gui from integer to string (true/false), but missed
the type assignment from the function argument.

Fixes #207.

Refer-to: WoeUSB crashed due to improper parameter type assignment ·
Issue #207 · slacka/WoeUSB <https://github.com/slacka/WoeUSB/issues/207>
Signed-off-by: 林博仁(Buo-ren Lin) <[email protected]>
  • Loading branch information
brlin-tw committed Sep 14, 2018
1 parent aab0d97 commit 75fbe97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/woeusb
Original file line number Diff line number Diff line change
Expand Up @@ -1345,7 +1345,7 @@ copy_filesystem_files(){
util_check_function_parameters_quantity 3 "${#}"
local source_fs_mountpoint="${1}"; shift
local target_fs_mountpoint="${1}"; shift
local -ir only_for_gui="${1}"
local -r only_for_gui="${1}"

local -i total_size
total_size=$(
Expand Down

0 comments on commit 75fbe97

Please sign in to comment.