better sudoers configuration check

This commit is contained in:
Girish Ramakrishnan
2023-12-03 16:10:02 +01:00
parent 702de2557e
commit 943325baa3
2 changed files with 28 additions and 22 deletions

View File

@@ -2,6 +2,11 @@
set -eu
if [[ "${1:-}" == "--check" ]]; then
echo "OK"
exit 0
fi
args=$(getopt -o "" -l "follow,lines:" -n "$0" -- "$@")
eval set -- "${args}"