From d092bb86f6c43ecf873368eb94efd0b7820b3051 Mon Sep 17 00:00:00 2001 From: Achim Date: Wed, 22 Dec 2021 18:39:50 +0100 Subject: [PATCH] fix if-expression for user-id check --- script/install-coap-client.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/install-coap-client.sh b/script/install-coap-client.sh index 0f376007..8d88cf98 100755 --- a/script/install-coap-client.sh +++ b/script/install-coap-client.sh @@ -1,6 +1,6 @@ #!/bin/sh -if [ "$EUID" -ne 0 ] +if [ $(id -u) -ne 0 ] then echo "Please run the script as: sudo ./install-coap-client.sh" exit fi