File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -3,14 +3,13 @@ param (
33 [string ]
44 $targetDirectory ,
55 [string ]
6- $packageName = " @microsoft/agents-m365copilot" ,
7- [Parameter (Mandatory = $true )]
8- [string ]
9- $folderToClean
6+ $packageName = " @microsoft/agents-m365copilot"
107)
118Push-Location $targetDirectory
129
1310$kiotaLockFileName = " kiota-lock.json"
11+ # Extract folder name from package name (the part after the slash)
12+ $folderToClean = $packageName.Split (" /" )[1 ]
1413$folderToCleanPath = Join-Path $targetDirectory - ChildPath $folderToClean
1514
1615# Check if the folder to clean exists
@@ -26,4 +25,4 @@ if (Test-Path $folderToCleanPath) {
2625}
2726
2827Pop-Location
29- Write-Host " Cleaning operation completed for target: $folderToClean " - ForegroundColor Green
28+ Write-Host " Cleaning operation completed for target: $folderToClean derived from package: $packageName " - ForegroundColor Green
You can’t perform that action at this time.
0 commit comments