Skip to content

Commit 466ff86

Browse files
committed
feat(brew): Adding script for installing specific version
Signed-off-by: Vincent Boutour <[email protected]>
1 parent 0a7b455 commit 466ff86

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

sources/_homebrew

+8
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,12 @@ if command -v brew >/dev/null 2>&1; then
99
export BREW_PREFIX
1010

1111
export PATH="${BREW_PREFIX}/opt/libpq/bin:${BREW_PREFIX}/opt/ruby/bin:${BREW_PREFIX}/opt/openssl/bin:${BREW_PREFIX}/opt/grep/libexec/gnubin:${BREW_PREFIX}/opt/make/libexec/gnubin:${BREW_PREFIX}/opt/curl/bin:${BREW_PREFIX}/sbin:${PATH}"
12+
13+
brew_specific_version() {
14+
# cf. https://github.com/orgs/Homebrew/discussions/155
15+
16+
brew tap-new "$(whoami)/${1}"
17+
brew extract --version "${2}" "${1}" "$(whoami)/${1}"
18+
brew install "${1}/${2}"
19+
}
1220
fi

0 commit comments

Comments
 (0)