This commit is contained in:
Meliox 2025-08-07 11:54:02 +02:00
parent 8e13ce778a
commit ab9e814f97

View File

@ -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