This commit is contained in:
piecka 2025-05-05 10:04:43 +02:00
parent 81fc8619ae
commit bd710e4a35

View file

@ -34,7 +34,7 @@ check_root() {
if [ "$(id -u)" -ne 0 ]; then
if command_exists sudo; then
echo_info "User is not root. Using sudo for privileged operations."
_sudo="sudo"
_sudo="sudo -E"
else
echo_error "No sudo found and you're not root! Can't install packages."
return 1