diff options
Diffstat (limited to '_plugins/linter.rb')
-rw-r--r-- | _plugins/linter.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/_plugins/linter.rb b/_plugins/linter.rb index b3830d5..0ccc92d 100644 --- a/_plugins/linter.rb +++ b/_plugins/linter.rb @@ -144,17 +144,17 @@ module Jekyll ] expected.each do |metadata| unless stdout.include? metadata - tags = expected.join('\\n').gsub(/'/, "'\"'\"'") - add_metadata_cmd = "metaflac --remove-all #{file}\nprintf '#{tags}\\n' | metaflac --import-tags-from=- #{file}" + tags = expected.join("\n").gsub(/'/, "'\"'\"'") + add_metadata_cmd = "metaflac --remove-all-tags #{file}\nprintf '#{tags}\n' | metaflac --import-tags-from=- #{file}" check_metadata_cmd = "metaflac --export-tags-to=- #{file}" - raise "Missing metadata entry '#{metadata}' in '#{file}'.\nAdd it with:\n\n#{add_metadata_cmd}\n\nCheck with:\n #{check_metadata_cmd}" + raise "Missing metadata entry '#{metadata}' in '#{file}'.\nAdd it with:\n\n" + add_metadata_cmd + "\n\nCheck with:\n #{check_metadata_cmd}" end end check_cover_cmd = "metaflac #{file} --export-picture-to=- | diff - static/favicon.png" `#{check_cover_cmd}` unless $?.success? then - add_cover_cmd = "metaflac #{file} --import-picture-from=static/favicon.png" + add_cover_cmd = "metaflac --remove-all #{file}\nmetaflac #{file} --import-picture-from=static/favicon.png" raise "Cover art from '#{file}' doesn't match 'static/favicon.png'.\nFix it with:\n\n#{add_cover_cmd}\n\nCheck with:\n #{check_cover_cmd}" end elsif name == 'screencasts' then |