Skip to content

Commit efc0e92

Browse files
committed
Corrected folder path
1 parent 1545e22 commit efc0e92

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/UpdateLinks.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,13 @@ function Add-Link {
148148
$BaseUrl = "/powershell/module"
149149
$CommandRename = $Command.Replace("-MgBeta", "-Mg")
150150
$FullModuleName = "Microsoft.Graph.$Module/$CommandRename"
151+
$ModuleName = "Microsoft.Graph.$Module"
151152
$LinkTitle = "To view the v1.0 release of this cmdlet, view"
152153
$View = "?view=graph-powershell-1.0"
153154
if ($GraphProfile -eq "v1.0") {
154155
$CommandRename = $Command.Replace("-Mg", "-MgBeta")
155156
$FullModuleName = "Microsoft.Graph.Beta.$Module/$CommandRename"
157+
$ModuleName = "Microsoft.Graph.Beta.$Module"
156158
$LinkTitle = "To view the beta release of this cmdlet, view"
157159
$View = "?view=graph-powershell-beta"
158160

@@ -161,7 +163,7 @@ function Add-Link {
161163
$Link = "> [!NOTE]`n> $LinkTitle [$CommandRename]($BaseUrl/$FullModuleName$View)`r`n`n## SYNTAX"
162164
$LinkOnEndOfDoc = "## RELATED LINKS`r`n[$CommandRename]($BaseUrl/$FullModuleName$View)"
163165
$Folder = $View.Split("=")[1]
164-
$ConfirmFile = Join-Path $WorkLoadDocsPath "$Folder" "$FullModuleName" "$BetaCommand.md"
166+
$ConfirmFile = Join-Path $WorkLoadDocsPath "$Folder" "$ModuleName" "$CommandRename.md"
165167
$ConfirmCommandAvailability = Find-MgGraphCommand -Command $CommandRename
166168
if ($ConfirmCommandAvailability -and (Test-Path $ConfirmFile)) {
167169
(Get-Content $File) |

0 commit comments

Comments
 (0)