common.sh: print message when script cannot run

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
This commit is contained in:
Nikos Mavrogiannopoulos
2020-02-07 16:48:19 +01:00
parent 1a6776c3a7
commit ea3f6900c1

View File

@@ -32,6 +32,7 @@ fi
if test -z "$NO_NEED_ROOT";then
if test "$(id -u)" != "0";then
echo "You need to run this script as root"
exit 77
fi
else