2023-11-18 22:54:08

This commit is contained in:
z17CX 2023-11-18 22:54:08 +00:00
parent 39cf220f2f
commit 96c4bf6e63
Signed by: z17cx
GPG Key ID: 3F5F87C84EE943E4
3 changed files with 5 additions and 5 deletions

View File

@ -95,7 +95,7 @@ PrivateData = @{
PSData = @{
# Tags applied to this module. These help with module discovery in online galleries.
Tags = 'pwsh','curl'
Tags = 'pwsh', 'curl'
# A URL to the license for this module.
LicenseUri = 'https://github.com/pkgstore/pwsh-curl/blob/main/LICENSE'

View File

@ -6,10 +6,10 @@ function Start-cURL {
#>
Param(
[Alias('AD')][string[]]$AppData = @('curl.exe', 'curl-ca-bundle.crt', 'libcurl-x64.def', 'libcurl-x64.dll')
[string[]]$AppData = @('curl.exe', 'curl-ca-bundle.crt', 'libcurl-x64.def', 'libcurl-x64.dll')
)
$AppPath = (Split-Path -Path "${PSScriptRoot}" -Parent)
$AppPath = (Split-Path "${PSScriptRoot}" -Parent)
$App = @{LiteralPath = "${AppPath}"; Filter = "$($AppData[0])"; Recurse = $true; File = $true}
$App = ((Get-ChildItem @App) | Select-Object -First 1)
$NL = [Environment]::NewLine

View File

@ -6,10 +6,10 @@ function Start-cURLDownload() {
#>
Param(
[Parameter(Mandatory)][Alias('URL')][string[]]$P_URL
[Parameter(Mandatory)][Alias('URL')][string[]]$URL
)
$P_URL | ForEach-Object {
$URL | ForEach-Object {
$Param = @('--location') # If the server reports that the requested page has moved to a different location.
$Param += @('--remote-name') # Write output to a local file named like the remote file we get.
$Param += @("${_}") # Input URL.