Skip to content
Snippets Groups Projects
user avatar
Ben Brown authored
Overriding TOOLS with 'adb' as the only entry, or with 'adb' as the
final entry in the list fails to match the grep pattern. The current
pattern includes trailing whitespace, likely to distinguish it from
'adbd'. However since `${TOOLS}` is then passed to grep unquoted, any
trailing whitespace would be dropped by the shell.

Fixed by replacing the trailing whitespace with '\>' to mark the end of
the word, which continues to ensure we don't match against 'adbd'.

Signed-off-by: default avatarBen Brown <ben.brown@codethink.co.uk>
Signed-off-by: default avatarKhem Raj <raj.khem@gmail.com>
3f36657a
History
Name Last commit Last update