changed function GetTempPath to Get-TempPath
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user