Skip to content

Commit

Permalink
updated rclone version unsupported
Browse files Browse the repository at this point in the history
  • Loading branch information
toutas committed Sep 5, 2021
1 parent c5eb4b1 commit 92a7ae7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ private static async Task Main(string[] args)
bool validRcloneVersion = await CheckValidRcloneVersion();
if (!validRcloneVersion)
{
Console.WriteLine("Rclone versions below v1.55 are unsupported");
cts.Cancel();
}

Expand Down Expand Up @@ -113,7 +114,7 @@ private static async Task<bool> CheckValidRcloneVersion()
}
int indexOfV = versionLine.IndexOf("v");

string[]? version = versionLine.Substring(indexOfV).Split(".");
string[]? version = versionLine.Substring(indexOfV+1).Split(".");

bool majorValid = int.TryParse(version.First(), out int majorVersion);
bool minorValid = int.TryParse(version.Skip(1).First(), out int minorVersion);
Expand Down

0 comments on commit 92a7ae7

Please sign in to comment.