aboutsummaryrefslogtreecommitdiff
path: root/gpu_pass.sh
diff options
context:
space:
mode:
authorawy <awy@tutamail.com>2024-08-26 02:19:47 +0300
committerawy <awy@tutamail.com>2024-08-26 02:19:47 +0300
commita3cdf6fe99d54774af51123e78b580c4b6d76462 (patch)
treee6c517780f94207cbebc0d6340cc82ea327b0599 /gpu_pass.sh
parent0fd16934df7ba5b6ec4f0c85042883ad91980c59 (diff)
posix compliant root checkHEADmaster
Diffstat (limited to 'gpu_pass.sh')
-rwxr-xr-xgpu_pass.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/gpu_pass.sh b/gpu_pass.sh
index beac484..c68ed48 100755
--- a/gpu_pass.sh
+++ b/gpu_pass.sh
@@ -1,7 +1,9 @@
+#!/bin/sh
+
WORKDIRECTORY=$PWD
PERMUSER="awy"
-if [ "$EUID" -ne 0 ]
+if [ "$(id -u)" -ne 0 ]
then printf "The script has to be run as root.\n"
exit
fi