mirror of
https://github.com/netchx/netch.git
synced 2026-03-14 17:43:18 +08:00
[GitHub CI] Update build.yml
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
Push-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
|
||||
|
||||
$ms = [System.IO.MemoryStream]::new();
|
||||
$wr = [System.IO.StreamWriter]::new($ms);
|
||||
Get-ChildItem -Path '.' -File | ForEach-Object {
|
||||
$name=$_.Name
|
||||
|
||||
$wr.Write((Get-FileHash -Path ".\$name" -Algorithm SHA256).Hash.ToLower())
|
||||
}
|
||||
$ms.Position = 0
|
||||
|
||||
Write-Output (Get-FileHash -InputStream $ms).Hash.ToLower()
|
||||
Pop-Location
|
||||
Reference in New Issue
Block a user