summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <matthias.beyer@ifm.com>2022-08-06 08:47:45 +0200
committerMatthias Beyer <matthias.beyer@ifm.com>2022-08-16 16:06:01 +0200
commit019c359a7cb91647e30c0941d48054cdba1ef54e (patch)
tree9474c3b3ddaa78d408f1ae08ce69ed1c3eba6137
parent7675aa9c4e5748212b410fb847d255f259608af6 (diff)
Fix: POSIX sh does not know &>
We're running on /bin/sh here, and that's most likely a POSIX `sh` binary. POSIX `sh` does not know about `&>`. This patch fixes this to be POSIX compatible. This fixes shellcheck SC3020 Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
-rwxr-xr-xget-thin-edge_io.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/get-thin-edge_io.sh b/get-thin-edge_io.sh
index 394f4b2e..b0feb6a3 100755
--- a/get-thin-edge_io.sh
+++ b/get-thin-edge_io.sh
@@ -121,7 +121,7 @@ minimal) install_basic_components ;;
full)
install_basic_components
install_tedge_agent
- if apt -v &>/dev/null; then
+ if apt -v >/dev/null 2>&1; then
install_tedge_plugins
fi
;;