tool: fix redirect bashism in dump-i2c.sh

In POSIX sh, &> is undefined, and will lead to confusing errors on
e.g. dash.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
This commit is contained in:
Jani Nikula 2023-06-28 12:08:53 +03:00
parent 41027f9cc6
commit 8829bab67a

View file

@ -1,11 +1,11 @@
#!/bin/sh -eu
if ! lsmod | grep i2c_dev &>/dev/null; then
if ! lsmod | grep i2c_dev >/dev/null 2>&1; then
echo "kernel module i2c-dev must be loaded"
exit
fi
if ! command -v i2cdump &>/dev/null; then
if ! command -v i2cdump >/dev/null 2>&1; then
echo "i2cdump from i2c-tools must be installed"
exit
fi