Fixed sudo alias
Passed SHRC_D to child sudo sessions, fixes when not using pqb specific prefix
This commit is contained in:
parent
8a9738ded4
commit
a0cc55bb6f
|
@ -2,7 +2,7 @@
|
||||||
function sudo() {
|
function sudo() {
|
||||||
local cli="$(command -v "${1}")"
|
local cli="$(command -v "${1}")"
|
||||||
[[ -x "$cli" ]] || cli="${1}"
|
[[ -x "$cli" ]] || cli="${1}"
|
||||||
/usr/bin/sudo --preserve-env=PATH -- "$cli" "${@:2}"
|
/usr/bin/sudo --preserve-env=PATH,SHRC_D -- "$cli" "${@:2}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue