brew: fail fast when not using bash
This commit is contained in:
parent
fc056cec59
commit
954c3596b2
6
bin/brew
6
bin/brew
@ -7,6 +7,12 @@ if ! [[ -d "${PWD}" ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Fail fast with concise message when not using bash
|
||||||
|
if [ -z "${BASH_VERSION:-}" ]; then
|
||||||
|
echo "Error: Bash is required to run brew." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
quiet_cd() {
|
quiet_cd() {
|
||||||
cd "$@" &>/dev/null || return
|
cd "$@" &>/dev/null || return
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user