Prevent crash if quickget produces more than 5 columns in CSV

This commit is contained in:
Yannick Mauray 2021-11-08 00:33:41 +01:00
parent d38146736c
commit e278ac7f6e
No known key found for this signature in database
GPG Key ID: 67C4AAC5E99CB909
1 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,8 @@ Future<List<OperatingSystem>> loadOperatingSystems(bool showUbuntus) async {
{
supportedVersion = Tuple5.fromList([...chunks, "wget"]);
} else {
supportedVersion = Tuple5.fromList(chunks);
var t5 = [chunks[0], chunks[1], chunks[2], chunks[3], chunks[4]].toList();
supportedVersion = Tuple5.fromList(t5);
}
if (currentOperatingSystem?.code != supportedVersion.item2) {