Skip to content

Commit

Permalink
src/winusb: chk_rt_deps: Make warning message yellow
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 b000113 commit 39b3e2b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/winusb
Original file line number Diff line number Diff line change
Expand Up @@ -374,10 +374,12 @@ check_runtime_dependencies(){

check_permission(){
if [ ! "$(id --user)" = 0 ]; then
util_switch_terminal_text_color yellow
printf --\
"%s\n%s\n"\
"Warning: You are not running WinUSB as root!"\
"Warning: This might be the reason of the following failure." >&2
util_switch_terminal_text_color none
fi
return 0
}; declare -fr check_permission
Expand Down

0 comments on commit 39b3e2b

Please sign in to comment.