Skip to content

Commit

Permalink
src/winusb: main: Use single call to define multiple aliases
Browse files Browse the repository at this point in the history
Signed-off-by: 林博仁 <[email protected]>
  • Loading branch information
brlin-tw committed Jun 7, 2017
1 parent 95c3761 commit e75e09d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/winusb
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,10 @@ declare -ir DD_BLOCK_SIZE="((4 * 1024 * 1024))" # 4MiB
declare -i pulse_current_pid=0

## For some reason alias won't be recognized in function if it's definition's LINENO is greater then it's reference in function, so we define it here:
alias echo_with_color=util_echo_with_color
alias switch_terminal_text_color=util_switch_terminal_text_color
alias shift_array=util_shift_array
alias\
echo_with_color=util_echo_with_color\
switch_terminal_text_color=util_switch_terminal_text_color\
shift_array=util_shift_array

## Entry point of the main code
init(){
Expand Down

0 comments on commit e75e09d

Please sign in to comment.