Fix sudo check
This commit is contained in:
parent
129160b82d
commit
9ebe418ddb
@ -3,7 +3,7 @@ set -euo pipefail
|
||||
|
||||
# check if user is root
|
||||
if [ "$EUID" -ne 0 ]; then
|
||||
sudo -l > /dev/null
|
||||
sudo -v
|
||||
fi
|
||||
|
||||
cat <<EOF
|
||||
|
Loading…
Reference in New Issue
Block a user