Skip to content

Commit

Permalink
use ShellHelper#env in language pack fetcher
Browse files Browse the repository at this point in the history
Custom env vars aren't set into the global `ENV` variable.
Without this change, we can't set custom CURL timeouts in curl requests.
  • Loading branch information
Damien Mathieu committed Nov 28, 2016
1 parent 3ba4149 commit 7306798
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/language_pack/fetcher.rb
Expand Up @@ -35,11 +35,11 @@ def curl_command(command)
end

def curl_timeout_in_seconds
ENV['CURL_TIMEOUT'] || 30
env('CURL_TIMEOUT') || 30
end

def curl_connect_timeout_in_seconds
ENV['CURL_CONNECT_TIMEOUT'] || 3
env('CURL_CONNECT_TIMEOUT') || 3
end

def load_config
Expand Down

0 comments on commit 7306798

Please sign in to comment.