fix bump-cask-pr handling of sha256 :no_check

This commit is contained in:
Razvan Azamfirei 2023-04-18 19:49:02 -04:00
parent 22fb173e39
commit 063324a116
No known key found for this signature in database
GPG Key ID: 62E97BFCB12046BD

View File

@ -135,6 +135,8 @@ module Homebrew
if new_version.latest? || new_hash == :no_check
opoo "Ignoring specified `--sha256=` argument." if new_hash.is_a?(String)
replacement_pairs << [/"#{old_hash}"/, ":no_check"] if old_hash != :no_check
elsif old_hash == :no_check && new_hash != :no_check
replacement_pairs << [":no_check", "\"#{new_hash}\""]
elsif old_hash != :no_check
if new_hash.nil? || cask.languages.present?
if new_hash && cask.languages.present?