Skip to content

Commit

Permalink
2023-11-18 22:54:08
Browse files Browse the repository at this point in the history
  • Loading branch information
uidHUB committed Nov 18, 2023
1 parent 39cf220 commit 96c4bf6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion PkgStore.cURL.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 2 additions & 2 deletions Private/Start-cURL.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Public/Start-cURLDownload.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 96c4bf6

Please sign in to comment.