Skip to content

Commit

Permalink
refactor(ps): force import Install/Setup-Utils modules
Browse files Browse the repository at this point in the history
  • Loading branch information
szymonos committed Oct 22, 2024
1 parent 934dd8e commit 818291e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion wsl/wsl_install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ begin {
# set location to workspace folder
Push-Location "$PSScriptRoot/.."
# import InstallUtils for the Update-SessionEnvironmentPath function
Import-Module (Resolve-Path './modules/InstallUtils')
Import-Module (Resolve-Path './modules/InstallUtils') -Force

Write-Host 'checking if the repository is up to date...' -ForegroundColor Cyan
if ((Update-GitRepository) -eq 2) {
Expand Down
4 changes: 2 additions & 2 deletions wsl/wsl_setup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ begin {
# set location to workspace folder
Push-Location "$PSScriptRoot/.."
# import InstallUtils for the Invoke-GhRepoClone function
Import-Module (Convert-Path './modules/InstallUtils')
Import-Module (Convert-Path './modules/InstallUtils') -Force
# import SetupUtils for the Set-WslConf function
Import-Module (Convert-Path './modules/SetupUtils')
Import-Module (Convert-Path './modules/SetupUtils') -Force

if (-not $SkipRepoUpdate) {
Write-Host "`nchecking if the repository is up to date..." -ForegroundColor Cyan
Expand Down

0 comments on commit 818291e

Please sign in to comment.