make simple
This commit is contained in:
parent
ab9e814f97
commit
afa6f1f93a
@ -77,9 +77,7 @@ function usage {
|
|||||||
|
|
||||||
# System checks
|
# System checks
|
||||||
function check_root_privileges() {
|
function check_root_privileges() {
|
||||||
if [[ $EUID -ne 0 ]]; then
|
[[ $EUID -eq 0 ]] || err "This script must be run as root. Please run it with 'sudo $0'."
|
||||||
err "This script must be run as root. Please run it with 'sudo $0'."
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Define a function to install packages
|
# Define a function to install packages
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user