2023-11-18 22:54:08
This commit is contained in:
parent
39cf220f2f
commit
96c4bf6e63
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue