From 542cda70607442fdba321fa4d6c19dc408ae3334 Mon Sep 17 00:00:00 2001 From: dental misorder Date: Tue, 19 Dec 2023 05:56:01 +0200 Subject: [PATCH] =?UTF-8?q?Fixed=20arg=20position=20=F0=9F=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Actions/HashAction.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);