lib/chromedriver_update.rb in chromedriver_update-0.1.5 vs lib/chromedriver_update.rb in chromedriver_update-0.1.6
- old
+ new
@@ -49,10 +49,10 @@
begin
if OS.windows?
version = `reg query "HKEY_CURRENT_USER\\Software\\Google\\Chrome\\BLBeacon" /v version`
version.scan(/version[^0-9]*([0-9\.]+)/).flatten.first
elsif OS.mac?
- version = `/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --version`
+ version = `"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --version`
version.scan(/([0-9\.]+)/).flatten.first
else
version = ""
begin
version = `google-chrome --version`