Merge pull request #15383 from halostatue/fix-shellenv-parameterless
Fix small errors in `brew shellenv`
This commit is contained in:
commit
8bfd5d738c
@ -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