diff --git a/lib/test_boosters/insights_uploader.rb b/lib/test_boosters/insights_uploader.rb index b0cdef3..9dec47a 100644 --- a/lib/test_boosters/insights_uploader.rb +++ b/lib/test_boosters/insights_uploader.rb @@ -3,7 +3,7 @@ module InsightsUploader module_function def upload(booster_type, file) - return unless File.exist?(file) + return unless system('which http') && File.exist?(file) cmd = "http POST '#{insights_url}' #{booster_type}:=@#{file}"