Skip to content

Commit 402ae57

Browse files
jeneauxmichaellwest
authored andcommitted
Modified Get-Item example to correctly return all children as stated in the example's comment
1 parent 8869d33 commit 402ae57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

appendix/packaging/new-explicititemsource.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ $package.Metadata.Version = "1.0";
119119
$package.Metadata.Readme = 'This text will be visible to people installing your package'
120120
121121
# Add content/home and all of its children to the package
122-
$source = Get-Item 'master:\content\home' | New-ExplicitItemSource -Name 'Home Page' -InstallMode Overwrite
122+
$source = Get-Item 'master:\content\home\*' | New-ExplicitItemSource -Name 'Home Page' -InstallMode Overwrite
123123
$package.Sources.Add($source);
124124
125125
# Save package

0 commit comments

Comments
 (0)