Since we do not specify bash (and/or zsh) as a requirement, use the standard error redirection that is more widely supported. Signed-off-by: Kim Phillips <kim.phillips@arm.com> Link: http://lkml.kernel.org/n/tip-ji5mhn3iilgch3eaay6csr6z@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>tirimbino
parent
db26984a36
commit
35435cd060
@ -1,6 +1,6 @@ |
||||
# Arnaldo Carvalho de Melo <acme@kernel.org>, 2017 |
||||
|
||||
skip_if_no_perf_probe() { |
||||
perf probe |& grep -q 'is not a perf-command' && return 2 |
||||
perf probe 2>&1 | grep -q 'is not a perf-command' && return 2 |
||||
return 0 |
||||
} |
||||
|
Loading…
Reference in new issue