Skip to content

Commit 906f4d4

Browse files
committed
Updated links file
1 parent 6db17e6 commit 906f4d4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/UpdateLinks.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,11 @@ function Construct-Path {
141141
$V1FilePath = Join-Path $WorkLoadDocsPath "graph-powershell-1.0" "Microsoft.Graph.$Module" "$Command.md"
142142

143143
if (Test-Path $BetaFilePath) {
144-
Add-Link -File $BetaFilePath -Module $Module -GraphProfile "beta" -Command $Command
144+
$V1Command = $Command.Replace("-MgBeta", "-Mg")
145+
$ConfirmV1Path = Join-Path $WorkLoadDocsPath "graph-powershell-v1.0" "Microsoft.Graph.$Module" "$V1Command.md"
146+
if(Test-Path $ConfirmV1Path){
147+
Add-Link -File $BetaFilePath -Module $Module -GraphProfile "beta" -Command $Command
148+
}
145149
}
146150

147151
if (Test-Path $V1FilePath) {

0 commit comments

Comments
 (0)