diff --git a/Windows-Scripts/checksum.ps1 b/Windows-Scripts/checksum.ps1 index dab3ad1..2d7963c 100644 --- a/Windows-Scripts/checksum.ps1 +++ b/Windows-Scripts/checksum.ps1 @@ -145,7 +145,10 @@ process { return } - $allItems = @()$isWildcardGlobal = $false$skipExtensions = @('.md5', '.sha1', '.sha256', '.sha384', '.sha512') + # Added explicit semicolons here to prevent copy-paste line-break parsing errors + $allItems = @(); + $isWildcardGlobal =$false; + $skipExtensions = @('.md5', '.sha1', '.sha256', '.sha384', '.sha512'); foreach ($pathEntry in$FilePath) { $isWildcard = ($pathEntry -match '\*') @@ -288,8 +291,8 @@ process { } # Check if -o / -OutFile parameter was explicitly invoked - $wantOutFile =$PSBoundParameters.ContainsKey('OutFile') - $outFilename =$OutFile + $wantOutFile =$PSBoundParameters.ContainsKey('OutFile'); + $outFilename =$OutFile; if ($wantOutFile) { # Feature 2 & 3: Recursive, Wildcard + Passed output flag splits hashes strictly into localized directory files