From 875c624e59e728164710a3cbeddde3b4518cb02c Mon Sep 17 00:00:00 2001 From: Josh Hagins Date: Fri, 24 Jul 2015 13:01:51 -0400 Subject: [PATCH] Verify sha256 if version stanza is modified --- developer/bin/audit_modified_casks | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/developer/bin/audit_modified_casks b/developer/bin/audit_modified_casks index 4850b6768b..9427bb9018 100755 --- a/developer/bin/audit_modified_casks +++ b/developer/bin/audit_modified_casks @@ -70,7 +70,7 @@ audit_cask () { needs_verification () { local cask_file="$1" ! is_sha256_no_check "$cask_file" && - file_diff "$cask_file" | is_url_or_sha256_modified + file_diff "$cask_file" | is_relevant_stanza_modified } is_sha256_no_check () { @@ -83,8 +83,8 @@ file_diff () { git diff "$commit_range" -- "$cask_file" } -is_url_or_sha256_modified () { - grep -Eq '^\+\s*(url|sha256)' +is_relevant_stanza_modified () { + grep -Eq '^\+\s*(url|sha256|version)' } modified_casks () {