Fix small errors in brew shellenv
These were introduced by typos and an incorrect assumption on the last update of #15358. The last commit had been tested with a parameter, but had not been re-tested *without* parameter. Apologies for the error.
This commit is contained in:
parent
8cb03851a4
commit
74b50ddc89
@ -81,6 +81,7 @@ case "$*" in
|
||||
;;
|
||||
shellenv)
|
||||
source "${HOMEBREW_LIBRARY}/Homebrew/cmd/shellenv.sh"
|
||||
shift
|
||||
homebrew-shellenv "$1"
|
||||
exit 0
|
||||
;;
|
||||
|
||||
@ -24,7 +24,7 @@ homebrew-shellenv() {
|
||||
then
|
||||
HOMEBREW_SHELL_NAME="$1"
|
||||
else
|
||||
HOMEBREW_SHELL_NAME="$(/bin/ps -p "${PPID}" -c -o comm=)}"
|
||||
HOMEBREW_SHELL_NAME="$(/bin/ps -p "${PPID}" -c -o comm=)"
|
||||
fi
|
||||
|
||||
case "${HOMEBREW_SHELL_NAME}" in
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user