mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-03-26 14:26:10 +01:00
Updated list-os-release.ps1
This commit is contained in:
parent
d32de25b58
commit
01df13393a
@ -6,17 +6,20 @@
|
||||
.NOTES Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
$PathToRepo = "$PSScriptRoot/.."
|
||||
|
||||
try {
|
||||
write-progress "Reading OS_IPFS_hashes.csv"
|
||||
write-progress "Reading OS_IPFS_hashes.csv ..."
|
||||
|
||||
$PathToRepo = "$PSScriptRoot/.."
|
||||
$PathToCsvFile = "$PathToRepo/Data/os-release.csv"
|
||||
invoke-webRequest -URI "https://fleschutz.droppages.com/downloads/OS_IPFS_hashes.csv" -outFile "$PathToCsvFile"
|
||||
|
||||
$Table = import-csv "$PathToCsvFile"
|
||||
remove-item -path "$PathToCsvFile"
|
||||
|
||||
write-output "Operating System Releases"
|
||||
write-output "========================="
|
||||
foreach ($Row in $Table) {
|
||||
write-output "* $($Row.Path) -> IPFS://$($Row.IPFS)"
|
||||
write-output "* $($Row.Path.substring(3)) -> ipfs://$($Row.IPFS)"
|
||||
}
|
||||
exit 0
|
||||
} catch {
|
||||
|
Loading…
Reference in New Issue
Block a user