Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

Commit d3e8592

Browse files
committed
Skip newly-added CSV headers
1 parent 722dc93 commit d3e8592

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/elixir_release.iss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ begin
5858
// Read the file at Filename and store the lines in Rows
5959
LoadStringsFromFile(Filename, Rows);
6060
// Match length of return array to number of rows
61-
SetArrayLength(Result, GetArrayLength(Rows));
61+
SetArrayLength(Result, GetArrayLength(Rows) - 1);
6262
63-
for i := 0 to GetArrayLength(Result) - 1 do begin
63+
for i := 1 to GetArrayLength(Rows) - 1 do begin
6464
// Separate values at commas
6565
RowValues := SplitString(Rows[i], ',');
6666
67-
with Result[i] do begin
67+
with Result[i - 1] do begin
6868
// Store first and second values as the Version and URL respectively
6969
Version := RowValues[0];
7070
URL := RowValues[1];

src/erlang_data.iss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ var
3535
RowValues: TStrings;
3636
begin
3737
LoadStringsFromFile(Filename, Rows);
38-
RowValues := SplitString(Rows[0], ',');
38+
RowValues := SplitString(Rows[1], ',');
3939
4040
with Result do begin
4141
OTPVersion := RowValues[0];

0 commit comments

Comments
 (0)