Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bin/brew: actually quiet cd #11887

Merged
merged 1 commit into from
Aug 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion Library/Homebrew/shims/utils.sh
@@ -1,7 +1,7 @@
set +o posix

quiet_safe_cd() {
cd "$1" >/dev/null || { echo "Error: failed to cd to $1" >&2; exit 1; }
cd "$1" &>/dev/null || { echo "Error: failed to cd to $1" >&2; exit 1; }
}

absdir() {
Expand Down
2 changes: 1 addition & 1 deletion bin/brew
Expand Up @@ -8,7 +8,7 @@ if ! [[ -d "${PWD}" ]]; then
fi

quiet_cd() {
cd "$@" >/dev/null || return
cd "$@" &>/dev/null || return
}

symlink_target_directory() {
Expand Down