ensure that newline char and "(installed)" is removed from available_versions lines
This commit is contained in:
Родитель
3d5f662943
Коммит
e924aa5f3b
|
@ -53,7 +53,7 @@ module MacOS
|
|||
def available_versions
|
||||
lines = shell_out!(XCVersion.list_available_xcodes).stdout.lines
|
||||
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
|
||||
|
|
Загрузка…
Ссылка в новой задаче