add file name next to hash values

This commit is contained in:
Benjamin Staneck 2017-04-07 07:45:28 +02:00
parent aa2eaa6886
commit e63368fe96

View File

@ -54,5 +54,5 @@ $version = Invoke-Expression "git describe --abbrev=0 --tags"
foreach ($t in $targets.GetEnumerator()) {
Create-Archive $cmderRoot "$saveTo\$($t.Name)" $t.Value
$hash = (Digest-Hash "$saveTo\$($t.Name)")
Add-Content "$saveTo\hashes.txt" $hash
Add-Content -path "$saveTo\hashes.txt" -value ($t.Name + ' ' + $hash)
}