diff --git a/controls/os_spec.rb b/controls/os_spec.rb index f6902ed..48dd32f 100644 --- a/controls/os_spec.rb +++ b/controls/os_spec.rb @@ -276,7 +276,7 @@ it { should be_directory } end - loaded_files = command("find #{cpuvulndir} -type f -maxdepth 1").stdout.split(/\n/).map(&:strip).find_all { |vulnfiles| !vulnfiles.empty? } + loaded_files = command("find #{cpuvulndir} -type f -maxdepth 1").stdout.split(/\r?\n/).map(&:strip).find_all { |vulnfiles| !vulnfiles.empty? } loaded_files.each do |vulnfile| describe file(vulnfile) do