mirror of
https://github.com/netchx/netch.git
synced 2026-05-05 22:35:48 +08:00
[GitHub CI] Caching (#772)
This commit is contained in:
committed by
GitHub
parent
1a445104c2
commit
d31981bed2
13
RouteHelper/sha256.ps1
Normal file
13
RouteHelper/sha256.ps1
Normal file
@@ -0,0 +1,13 @@
|
||||
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