diff --git a/functions/check_functions b/functions/check_functions index 1dd319a4..28280f8e 100755 --- a/functions/check_functions +++ b/functions/check_functions @@ -136,7 +136,7 @@ function check_dependencies { # Positive action [Yy]* ) echo_message warning "Requires root privileges" - sudo apt install -y $PACKAGE + superuser_do "apt install -y $PACKAGE" echo_message success "Package '$PACKAGE' installed." ;; # Negative action @@ -212,4 +212,4 @@ function system_checks { check_privileges # Check dependencies check_dependencies -} \ No newline at end of file +}