ensure that newline char and "(installed)" is removed from available_versions lines

This commit is contained in:
Jacob Zaval 2021-02-25 12:45:20 -08:00
Родитель 3d5f662943
Коммит e924aa5f3b
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -53,7 +53,7 @@ module MacOS
def available_versions def available_versions
lines = shell_out!(XCVersion.list_available_xcodes).stdout.lines lines = shell_out!(XCVersion.list_available_xcodes).stdout.lines
lines.reject! { |line| line.start_with?(/\D/) } lines.reject! { |line| line.start_with?(/\D/) }
lines.map { |line| line.chomp('(installed)').strip } lines.map { |line| line.chomp.chomp('(installed)').strip }
end end
end end
end end