Merge pull request #3496 from reitermarkus/fix-shell-detection

Fix `Utils::Shell.parent`.
This commit is contained in:
Markus Reiter 2017-11-28 22:16:45 +01:00 committed by GitHub
commit c8ef8ceadc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,7 +97,7 @@ then
FILTERED_ENV+=( "${VAR}=${!VAR}" )
done
/usr/bin/env -i "${FILTERED_ENV[@]}" /bin/bash "$HOMEBREW_LIBRARY/Homebrew/brew.sh" "$@"
exec /usr/bin/env -i "${FILTERED_ENV[@]}" /bin/bash "$HOMEBREW_LIBRARY/Homebrew/brew.sh" "$@"
else
source "$HOMEBREW_LIBRARY/Homebrew/brew.sh"
fi