<p></p>
<p><b>@tomhughes</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2597#discussion_r412907671">app/models/trace.rb</a>:</p>
<pre style='color:#555'>> @@ -117,7 +117,7 @@ def trace_name
   end
 
   def mime_type
-    filetype = `/usr/bin/file -Lbz #{trace_name}`.chomp
+    filetype = Open3.capture2("/usr/bin/file", "-Lbz", trace_name)[0].chomp
</pre>
<p>I tend to prefer <code>.first</code> over <code>[0]</code> in cases like though I'm not sure there's a really good reason for doing so.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2597#pullrequestreview-398104497">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLLDJUODIHBGECPLEC3RN3JYVANCNFSM4MOCURNQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAK2OLIELRN7IAPZ33EMDJ3RN3JYVA5CNFSM4MOCURN2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOC65JPMI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/2597#pullrequestreview-398104497",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/2597#pullrequestreview-398104497",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>