Skip to content

Commit

Permalink
Merge pull request #2192 from microsoft/dpaul-AutoUpdateFix
Browse files Browse the repository at this point in the history
Use long temp path name vs short name
  • Loading branch information
dpaulson45 authored Sep 17, 2024
2 parents 1c4af31 + f6de6a9 commit 9e7e698
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Shared/ScriptUpdateFunctions/Invoke-ScriptUpdate.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function Invoke-ScriptUpdate {

$oldName = [IO.Path]::GetFileNameWithoutExtension($scriptName) + ".old"
$oldFullName = (Join-Path $scriptPath $oldName)
$tempFullName = (Join-Path $env:TEMP $scriptName)
$tempFullName = (Join-Path ((Get-Item $env:TEMP).FullName) $scriptName)

if ($PSCmdlet.ShouldProcess("$scriptName", "Update script to latest version")) {
try {
Expand Down

0 comments on commit 9e7e698

Please sign in to comment.