Skip to content

Commit

Permalink
Use long temp path name vs short name
Browse files Browse the repository at this point in the history
Using the short name is causing some problems with the auto update logic causing that code to not work
  • Loading branch information
dpaulson45 committed Sep 17, 2024
1 parent 1c4af31 commit f6de6a9
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 f6de6a9

Please sign in to comment.