Skip to content

Commit 930157e

Browse files
rahearnrei-moo
authored andcommitted
Fix rake task file count output message
1 parent eeb20c6 commit 930157e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/tasks/tasks.rake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ namespace :secure_headers do
2727
file.write(script_hashes.to_yaml)
2828
end
2929

30-
puts "Script hashes from " + script_hashes.keys.size.to_s + " files added to #{SecureHeaders::Configuration::HASH_CONFIG_FILE}"
30+
file_count = (script_hashes["scripts"].keys + script_hashes["styles"].keys).uniq.count
31+
puts "Script and style hashes from #{file_count} files added to #{SecureHeaders::Configuration::HASH_CONFIG_FILE}"
3132
end
3233
end

0 commit comments

Comments
 (0)