diff --git a/bin/ruby-build b/bin/ruby-build index a558d784..c48749bd 100755 --- a/bin/ruby-build +++ b/bin/ruby-build @@ -518,8 +518,8 @@ verify_gcc() { build_package_replace_osx_openssl() { # Check for broken OpenSSL build shipped with OSX. - if [[ $(type sw_vers) ]] && [[ "$(openssl version)" = "OpenSSL 0.9.8r 8 Feb 2011" ]] + if [ "$(uname -s)" = "Darwin" ] && then # Install to a subdirectory since we don't want shims for bin/openssl. OPENSSL_PREFIX_PATH="${PREFIX_PATH}/openssl"