Skip to content

Commit

Permalink
Remove scope from Update-Module call
Browse files Browse the repository at this point in the history
  • Loading branch information
t1m0thyj committed Feb 20, 2023
1 parent af161c0 commit 6c30844
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion experimental/SyncVirtualDesktops.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ if (-Not (Get-Module -ListAvailable -Name VirtualDesktop)) {
Install-Module -Name VirtualDesktop -Force -Scope CurrentUser
$settingsUpdated = $true
} elseif (-Not (Test-Path -Path $settingsFile -PathType Leaf) -Or ($currentWinVer -Ne (Import-Clixml -Path $settingsFile))) {
Update-Module -Name VirtualDesktop -Force -Scope CurrentUser
Update-Module -Name VirtualDesktop -Force
$settingsUpdated = $true
}

Expand Down

0 comments on commit 6c30844

Please sign in to comment.