bin/brew: actually quiet cd

Fixes #11886.
This commit is contained in:
Bo Anderson 2021-08-19 13:32:15 +01:00
parent d756d05a23
commit a84b13b6e9
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65
2 changed files with 2 additions and 2 deletions

View File

@ -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() {

View File

@ -8,7 +8,7 @@ if ! [[ -d "${PWD}" ]]; then
fi
quiet_cd() {
cd "$@" >/dev/null || return
cd "$@" &>/dev/null || return
}
symlink_target_directory() {