changed function GetTempPath to Get-TempPath

This commit is contained in:
2023-10-05 12:47:08 -04:00
parent 32b33cee34
commit 31a06a9206
7 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -193,7 +193,7 @@ Function Download-File {
[Parameter(Mandatory=$true,ValueFromPipeline=$true)][string]$URL,
[Parameter(Mandatory=$false,ValueFromPipeline=$false)][string]$File
)
If ( !($File) ) { $File = '{0}{1}' -f (GetTempPath), (Split-Path $URL -Leaf) }
If ( !($File) ) { $File = '{0}{1}' -f (Get-TempPath), (Split-Path $URL -Leaf) }
If ( IsURLValid $URL ) {
If ( Test-Path $File ) {
LogMsg "Deleting existing file: ""${File}"""
@@ -274,7 +274,7 @@ Function IsWindowsBuild {
}
## Get the path to the TEMP folder (context dependent)
Function GetTempPath { Return [System.IO.Path]::GetTempPath() }
Function Get-TempPath { Return [System.IO.Path]::GetTempPath() }
## Determine if the system is 64-bit or not
Function Is64bit {