From 39cbd8c57bad0b81c843bb9314e6259fa72eefa9 Mon Sep 17 00:00:00 2001 From: Casey Strouse Date: Tue, 3 Mar 2020 06:04:08 -0700 Subject: [PATCH] Replace use of deprecated function (#3863) --- lib/const.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/const.rb b/lib/const.rb index 2e6ad2e1f..51f4f6a86 100644 --- a/lib/const.rb +++ b/lib/const.rb @@ -4,7 +4,7 @@ CREW_VERSION = '1.3.0' ARCH = `uname -m`.strip ARCH_LIB = if ARCH == 'x86_64' then 'lib64' else 'lib' end -LIBC_VERSION = if File.exists? "/#{ARCH_LIB}/libc-2.27.so" then '2.27' else '2.23' end +LIBC_VERSION = if File.exist? "/#{ARCH_LIB}/libc-2.27.so" then '2.27' else '2.23' end if ENV['CREW_PREFIX'].to_s == '' CREW_PREFIX = '/usr/local'