mirror of
https://gitlab.freedesktop.org/emersion/libdisplay-info.git
synced 2024-11-16 19:48:30 +01:00
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:
parent
41027f9cc6
commit
8829bab67a
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue