From 602a83ed2579c2d9855054bae9ec94e7ad9805d2 Mon Sep 17 00:00:00 2001 From: faulty Date: Tue, 13 Dec 2022 13:47:18 +0100 Subject: [PATCH] i hate ids --- deploy-tools.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy-tools.sh b/deploy-tools.sh index ea16f18..e87623b 100755 --- a/deploy-tools.sh +++ b/deploy-tools.sh @@ -1,6 +1,6 @@ #!/bin/sh -if (( $EUID != 0 )); then +if [ "$(id -u)" -eq 0 ]; then echo "Please run as root" exit fi