Skip to content

Commit

Permalink
Disable inline-file-hash check during auto-check
Browse files Browse the repository at this point in the history
These files are all protected by master-hash.

Signed-off-by: Richard T Bonhomme <[email protected]>
  • Loading branch information
TinCanTech committed Mar 4, 2022
1 parent 5c97378 commit f9a9d42
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions easytls
Original file line number Diff line number Diff line change
Expand Up @@ -2985,11 +2985,15 @@ inline_file_verify_hash ()
[ -f "${inline_file}" ] || missing_file "${inline_file}"

# generate current file HASH
force_hash=1
validate_hash_block="$(( validate_hash_block - 1 ))"
generate_and_validate_file_hash "${inline_file}" || {
die "inline_file_verify_hash - generate_and_validate_file_hash"
}
if [ "${auto_check}" ]; then
: # Ignore, improve auto-check
else
force_hash=1
validate_hash_block="$(( validate_hash_block - 1 ))"
generate_and_validate_file_hash "${inline_file}" || {
die "inline_file_verify_hash - generate_and_validate_file_hash"
}
fi

# Use the hash
inline_file_hash="${generated_valid_hash}"
Expand Down

1 comment on commit f9a9d42

@TinCanTech
Copy link
Owner Author

@TinCanTech TinCanTech commented on f9a9d42 Mar 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#272 This even saves 10 seconds on github CI for *nix (The same will not be true for windblows)

Edit: The plumbing appears to be more costly than the porcelain, for Windblows .. c'est la vie.

Please sign in to comment.