cleanup
This commit is contained in:
parent
8e13ce778a
commit
ab9e814f97
@ -77,7 +77,9 @@ function usage {
|
|||||||
|
|
||||||
# System checks
|
# System checks
|
||||||
function check_root_privileges() {
|
function check_root_privileges() {
|
||||||
[[ $EUID -eq 0 ]] || err "This script must be run as root"
|
if [[ $EUID -ne 0 ]]; then
|
||||||
|
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