wip
This commit is contained in:
parent
81fc8619ae
commit
bd710e4a35
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ check_root() {
|
||||||
if [ "$(id -u)" -ne 0 ]; then
|
if [ "$(id -u)" -ne 0 ]; then
|
||||||
if command_exists sudo; then
|
if command_exists sudo; then
|
||||||
echo_info "User is not root. Using sudo for privileged operations."
|
echo_info "User is not root. Using sudo for privileged operations."
|
||||||
_sudo="sudo"
|
_sudo="sudo -E"
|
||||||
else
|
else
|
||||||
echo_error "No sudo found and you're not root! Can't install packages."
|
echo_error "No sudo found and you're not root! Can't install packages."
|
||||||
return 1
|
return 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue