We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f564c6e commit d4f5546Copy full SHA for d4f5546
1 file changed
lib/omnibus/fetchers/net_fetcher.rb
@@ -287,13 +287,13 @@ def verify_checksum!
287
log.info(log_key) { "Verifying checksum" }
288
289
# Check if the source is a Git repository
290
- if source[:url] =~ /git@|https?:\/\/.*\.git/
+ if source[:url] =~ %r{git@|https?:\/\/.*\.git}
291
log.warn(log_key) { "Skipping checksum verification for Git source: #{source[:url]}" }
292
return
293
end
294
295
expected = checksum
296
- actual = digest(downloaded_file, digest_type)
+ actual = digest(downloaded_file, digest_type)
297
298
if expected != actual
299
raise ChecksumMismatch.new(self, expected, actual)
0 commit comments