cmd/vendor-install: add extra read check.
Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
This commit is contained in:
parent
c214952e2b
commit
1124ab315c
@ -33,7 +33,7 @@ set_ruby_variables() {
|
||||
fi
|
||||
|
||||
ruby_PLATFORMINFO="${HOMEBREW_LIBRARY}/Homebrew/vendor/portable-ruby-${ruby_PROCESSOR}-${ruby_OS}"
|
||||
if [[ -f "${ruby_PLATFORMINFO}" ]]
|
||||
if [[ -f "${ruby_PLATFORMINFO}" && -r "${ruby_PLATFORMINFO}" ]]
|
||||
then
|
||||
# ruby_TAG and ruby_SHA will be set via the sourced file if it exists
|
||||
# shellcheck disable=SC1090
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user