Merge pull request #11887 from Bo98/quiet_cd

bin/brew: actually quiet cd
This commit is contained in:
Bo Anderson 2021-08-20 02:51:48 +01:00 committed by GitHub
commit e3876e86c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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() {