Dmitry Nefedov
2 years ago
2 changed files with 17 additions and 16 deletions
@ -0,0 +1,16 @@ |
|||
# Download cloc |
|||
# https://github.com/AlDanial/cloc |
|||
|
|||
$Parameters = @{ |
|||
Uri = "https://api.github.com/repos/AlDanial/cloc/releases/latest" |
|||
UseBasicParsing = $true |
|||
Verbose = $true |
|||
} |
|||
$Tag = (Invoke-RestMethod @Parameters).tag_name.replace("v", "") |
|||
$Parameters = @{ |
|||
Uri = "https://github.com/AlDanial/cloc/releases/download/v$Tag/cloc-$Tag.exe" |
|||
OutFile = "$PSScriptRoot\cloc.exe" |
|||
UseBasicParsing = $true |
|||
Verbose = $true |
|||
} |
|||
Invoke-WebRequest @Parameters |
Loading…
Reference in new issue