diff --git a/Library/Homebrew/cmd/vendor-install.sh b/Library/Homebrew/cmd/vendor-install.sh index c7b30c486d6..9432000fabd 100644 --- a/Library/Homebrew/cmd/vendor-install.sh +++ b/Library/Homebrew/cmd/vendor-install.sh @@ -110,7 +110,7 @@ fetch() { then sha="$(sha256sum "$CACHED_LOCATION" | cut -d' ' -f1)" # Ruby 1.8.2's vendored Ruby has broken SHA256 calculation on several PowerPC CPUs - elif [[ -x "$(which ruby)" && "$cpu_family" != 9 && "$cpu_family" != 10 && "$cpu_family" != 11 ]] + elif [[ -x "$(which ruby)" && "$cpu_family" != 9 && "$cpu_family" != 10 && "$cpu_family" != 11 && "$cpu_family" != 100 ]] then sha="$(ruby -e "require 'digest/sha2'; digest = Digest::SHA256.new; File.open('$CACHED_LOCATION', 'rb') { |f| digest.update(f.read) }; puts digest.hexdigest")" # Pure Perl SHA256 implementation