File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -259,7 +259,12 @@ Function Move-Generation2MasterHybrid {
259
259
}
260
260
261
261
# copy generated docs to help folder
262
- Copy-Item - Path (" $SourcePath \{0}\docs\*" -f $submoduleDir.Name ) - Destination " $DestPath \$ModuleName \help" - Filter *-*
262
+ # Assume psd1 and help are in the same folder.
263
+ $Psd1FolderPostfix = ' ' ;
264
+ if (-not (Test-Path (Join-Path - Path (Join-Path - Path $DestPath - ChildPath $ModuleName ) - ChildPath " Az.$ModuleName .psd1" ))) {
265
+ $Psd1FolderPostfix = ' .Management'
266
+ }
267
+ Copy-Item - Path (" $SourcePath \{0}\docs\*" -f $submoduleDir.Name ) - Destination " $DestPath \$ModuleName$Psd1FolderPostfix \help" - Filter *-*
263
268
264
269
# Region generate-info.json Here have a issue that user may not use latest version to generate the code.
265
270
$generateInfo = @ {}
@@ -299,10 +304,6 @@ Function Move-Generation2MasterHybrid {
299
304
dotnet sln $SolutionPath add (Join-Path - Path (Join-Path - Path $DestPath - ChildPath $submoduleDir.Name ) - ChildPath Az.$submoduleName.csproj )
300
305
301
306
# Update psd1
302
- $Psd1FolderPostfix = ' ' ;
303
- if (-not (Test-Path (Join-Path - Path (Join-Path - Path $DestPath - ChildPath $ModuleName ) - ChildPath " Az.$ModuleName .psd1" ))) {
304
- $Psd1FolderPostfix = ' .Management'
305
- }
306
307
$DestPsd1Path = Join-Path - Path (Join-Path - Path $DestPath - ChildPath $ModuleName$Psd1FolderPostfix ) - ChildPath " Az.$ModuleName .psd1"
307
308
$Psd1Metadata = Import-LocalizedData - BaseDirectory (Join-Path - Path $DestPath - ChildPath $ModuleName$Psd1FolderPostfix ) - FileName " Az.$ModuleName .psd1"
308
309
$SubModulePsd1MetaData = Import-LocalizedData - BaseDirectory (Join-Path - Path $SourcePath - ChildPath $submoduleDir.Name ) - FileName " Az.$submoduleName .psd1"
You can’t perform that action at this time.
0 commit comments