diff --git a/colorscript.sh b/colorscript.sh index 9f074f3..6bf13ab 100644 --- a/colorscript.sh +++ b/colorscript.sh @@ -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