Fixed sudo alias

Passed SHRC_D to child sudo sessions, fixes when not using pqb specific
prefix
This commit is contained in:
Lockszmith 2022-10-10 18:42:53 -04:00
parent 8a9738ded4
commit a0cc55bb6f
1 changed files with 1 additions and 1 deletions

View File

@ -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}"
} }