Merge pull request #30 from Romanitho/Fix_update_path

Fix subfolder name
pull/31/head
Romain 2022-03-22 17:50:04 +01:00 committed by GitHub
commit 9feb0c982a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ function Update-WAU ($VersionToUpdate){
Expand-Archive -Path $ZipFile -DestinationPath $location -Force
Get-ChildItem -Path $location -Recurse | Unblock-File
Write-Log "Unzip finished" "Green"
$TempPath = (Resolve-Path "$location\Romanitho-Winget-AutoUpdate*\Winget-AutoUpdate\").Path
$TempPath = (Resolve-Path "$location\*\Winget-AutoUpdate\").Path
Copy-Item -Path "$TempPath\*" -Destination "$WorkingDir\" -Exclude "icons" -Recurse -Force
#Remove update zip file