lib/chromedriver_update.rb in chromedriver_update-0.2.1 vs lib/chromedriver_update.rb in chromedriver_update-0.2.2

- old
+ new

@@ -36,18 +36,13 @@ entry.extract(download_path) FileUtils.mv(download_path, chromedriver_path, force: true) unless OS.windows? begin FileUtils.chmod("+x", original_chromedriver_path) - `chmod +x "#{original_chromedriver_path}"` rescue begin - `chmod +x "#{original_chromedriver_path}"` + `sudo chmod +x "#{original_chromedriver_path}"` rescue - begin - `sudo chmod +x "#{original_chromedriver_path}"` - rescue - end end end end end end