repair vendor-install.sh
This commit is contained in:
parent
c67c202e54
commit
e82e4ea7c2
@ -4,15 +4,14 @@
|
|||||||
#: Install Homebrew's portable Ruby.
|
#: Install Homebrew's portable Ruby.
|
||||||
|
|
||||||
# HOMEBREW_CURLRC, HOMEBREW_LIBRARY, HOMEBREW_STDERR is from the user environment
|
# HOMEBREW_CURLRC, HOMEBREW_LIBRARY, HOMEBREW_STDERR is from the user environment
|
||||||
# HOMEBREW_CACHE, HOMEBREW_CURL, HOMEBREW_LINUX, HOMEBREW_LINUX_MINIMUM_GLIBC_VERSION, HOMEBREW_MACOS, HOMEBREW_MACOS_VERSION_NUMERIC, HOMEBREW_PROCESSOR is set by brew.sh
|
# HOMEBREW_CACHE, HOMEBREW_CURL, HOMEBREW_LINUX, HOMEBREW_LINUX_MINIMUM_GLIBC_VERSION, HOMEBREW_MACOS,
|
||||||
|
# HOMEBREW_MACOS_VERSION_NUMERIC and HOMEBREW_PROCESSOR are set by brew.sh
|
||||||
# shellcheck disable=SC2154
|
# shellcheck disable=SC2154
|
||||||
source "${HOMEBREW_LIBRARY}/Homebrew/utils/lock.sh"
|
source "${HOMEBREW_LIBRARY}/Homebrew/utils/lock.sh"
|
||||||
|
|
||||||
VENDOR_DIR="${HOMEBREW_LIBRARY}/Homebrew/vendor"
|
VENDOR_DIR="${HOMEBREW_LIBRARY}/Homebrew/vendor"
|
||||||
|
|
||||||
# Built from https://github.com/Homebrew/homebrew-portable-ruby.
|
# Built from https://github.com/Homebrew/homebrew-portable-ruby.
|
||||||
#
|
|
||||||
# Dynamic variables can't be detected by shellcheck
|
|
||||||
if [[ -n "${HOMEBREW_MACOS}" ]]
|
if [[ -n "${HOMEBREW_MACOS}" ]]
|
||||||
then
|
then
|
||||||
if [[ "${HOMEBREW_PROCESSOR}" = "Intel" ]]
|
if [[ "${HOMEBREW_PROCESSOR}" = "Intel" ]]
|
||||||
@ -120,7 +119,6 @@ fetch() {
|
|||||||
else
|
else
|
||||||
if [[ -f "${temporary_path}" ]]
|
if [[ -f "${temporary_path}" ]]
|
||||||
then
|
then
|
||||||
# HOMEBREW_CURL is set by brew.sh (and isn't mispelt here)
|
|
||||||
"${HOMEBREW_CURL}" "${curl_args[@]}" -C - "${VENDOR_URL}" -o "${temporary_path}"
|
"${HOMEBREW_CURL}" "${curl_args[@]}" -C - "${VENDOR_URL}" -o "${temporary_path}"
|
||||||
if [[ $? -eq 33 ]]
|
if [[ $? -eq 33 ]]
|
||||||
then
|
then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user