summaryrefslogtreecommitdiffstats
path: root/get-thin-edge_io.sh
diff options
context:
space:
mode:
authorMatthias Beyer <matthias.beyer@ifm.com>2022-08-06 08:50:31 +0200
committerMatthias Beyer <matthias.beyer@ifm.com>2022-08-16 16:06:06 +0200
commit185acac3f4b5a61ca411070194588fc94ff23cfe (patch)
tree4b339052c96009d5c6707f5f5a043fa8ffa3e60c /get-thin-edge_io.sh
parent019c359a7cb91647e30c0941d48054cdba1ef54e (diff)
Fix: Exit code checking
This fixes shellcheck SC2181 Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
Diffstat (limited to 'get-thin-edge_io.sh')
-rwxr-xr-xget-thin-edge_io.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/get-thin-edge_io.sh b/get-thin-edge_io.sh
index b0feb6a3..1e1dd467 100755
--- a/get-thin-edge_io.sh
+++ b/get-thin-edge_io.sh
@@ -134,8 +134,8 @@ esac
rm -R /tmp/tedge
# Test if tedge command is there and working
-tedge help >/dev/null
-if [ $? -eq 0 ]; then
+if tedge help >/dev/null;
+then
echo "\n${BLUE}thin-edge.io is now installed on your system!${COLORRESET}"
echo ""
echo "You can go to our documentation to find next steps:${BLUE} https://github.com/thin-edge/thin-edge.io/blob/main/docs/src/howto-guides/003_registration.md ${COLORRESET}"