diff --git a/Actions/HashAction.cs b/Actions/HashAction.cs index cd78f47..e7c9584 100644 --- a/Actions/HashAction.cs +++ b/Actions/HashAction.cs @@ -25,8 +25,8 @@ internal class HashAction : IAction public void SetData(params string[] data) { pathData = data[1]; - filename = data.Length > 1 ? data[2] : "checksum"; - separator = data.Length > 2 ? data[3] : ":"; + filename = data.Length > 2 ? data[2] : "checksum"; + separator = data.Length > 3 ? data[3] : ":"; } public void Start() => Checksum(pathData, filename, separator);