remove BASH in sudo

This commit is contained in:
Jakobus Schürz 2023-01-19 14:58:19 +01:00
parent e3b72eb975
commit 7f747743c6

View file

@ -63,7 +63,7 @@ function sudo() {
logdebug "\$1: $1" logdebug "\$1: $1"
[ -e "$(which $1 2>/dev/null)" ] && C="x" [ -e "$(which $1 2>/dev/null)" ] && C="x"
logdebug "C: $C" logdebug "C: $C"
[ getbashrcfile ] && BASH="bash --rcfile $(getbashrcfile) ${C:+-c}" || unset BASH [ getbashrcfile ] && BASH="bash --rcfile $(getbashrcfile)" || unset BASH
logdebug "BASH1: $BASH" logdebug "BASH1: $BASH"
[ -z "${C:-x}" ] && unset BASH [ -z "${C:-x}" ] && unset BASH
logdebug "BASH2: $BASH" logdebug "BASH2: $BASH"