From 818291e54d774015c28116b79ead383398b8a160 Mon Sep 17 00:00:00 2001 From: Szymon Osiecki Date: Tue, 22 Oct 2024 14:13:38 +0200 Subject: [PATCH] refactor(ps): force import Install/Setup-Utils modules --- wsl/wsl_install.ps1 | 2 +- wsl/wsl_setup.ps1 | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wsl/wsl_install.ps1 b/wsl/wsl_install.ps1 index b38ce2e..149f208 100644 --- a/wsl/wsl_install.ps1 +++ b/wsl/wsl_install.ps1 @@ -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) { diff --git a/wsl/wsl_setup.ps1 b/wsl/wsl_setup.ps1 index 464b4e2..5c54a34 100644 --- a/wsl/wsl_setup.ps1 +++ b/wsl/wsl_setup.ps1 @@ -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