Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b6a46b38bd | |||
| 3f66adb4ca |
@@ -12,7 +12,7 @@
|
|||||||
RootModule = 'PS-GiteaUtilities.psm1'
|
RootModule = 'PS-GiteaUtilities.psm1'
|
||||||
|
|
||||||
# Version number of this module.
|
# Version number of this module.
|
||||||
ModuleVersion = '1.5.0'
|
ModuleVersion = '1.5.3'
|
||||||
|
|
||||||
# Supported PSEditions
|
# Supported PSEditions
|
||||||
# CompatiblePSEditions = @()
|
# CompatiblePSEditions = @()
|
||||||
|
|||||||
@@ -472,10 +472,11 @@ Function Invoke-GiteaFileDownload {
|
|||||||
$branchIndex = [Array]::IndexOf($pathSegments, "branch") + 2
|
$branchIndex = [Array]::IndexOf($pathSegments, "branch") + 2
|
||||||
$DownloadFilePath = $pathSegments[$branchIndex..($pathSegments.Length - 2)] -join '/'
|
$DownloadFilePath = $pathSegments[$branchIndex..($pathSegments.Length - 2)] -join '/'
|
||||||
# Replace any URL encoded characters in the file name
|
# Replace any URL encoded characters in the file name
|
||||||
$DownloadFilePath = [System.Uri]::UnescapeDataString($DownloadFilePath)
|
|
||||||
$DownloadFileName = $pathSegments[-1]
|
$DownloadFileName = $pathSegments[-1]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$DownloadFilePath = [System.Uri]::UnescapeDataString($DownloadFilePath)
|
||||||
|
|
||||||
if ($PreserveRelativePath -and $outputPath) {
|
if ($PreserveRelativePath -and $outputPath) {
|
||||||
# If PreserveRelativePath is used, set up the directory structure
|
# If PreserveRelativePath is used, set up the directory structure
|
||||||
Write-Verbose "Preserving relative path structure for: $DownloadFileName"
|
Write-Verbose "Preserving relative path structure for: $DownloadFileName"
|
||||||
|
|||||||
Reference in New Issue
Block a user