From 7f7fc0a8ba0b51acdf6be36434c3771bae0e2843 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Sun, 24 Nov 2024 22:12:46 +0100 Subject: [PATCH] bugfix: fix filepath when calling from local dir --- util/winget.psm1 | 2 +- util/wsl.psm1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/util/winget.psm1 b/util/winget.psm1 index 556fa14..885bb39 100644 --- a/util/winget.psm1 +++ b/util/winget.psm1 @@ -17,7 +17,7 @@ function WingetInstall # Start admin process, import this script, run 'InstallPackages' function Start-Process powershell.exe -Verb RunAs -Wait ` -ArgumentList "-ExecutionPolicy", "Bypass", ` - "-C", "'Import-Module ./winget.psm1; InstallWinget'" + "-C", "'Import-Module ./util/winget.psm1; InstallWinget'" } winget.exe install -s winget --accept-source-agreements (Get-Content ./util/winget.list) diff --git a/util/wsl.psm1 b/util/wsl.psm1 index 3fede63..227c834 100644 --- a/util/wsl.psm1 +++ b/util/wsl.psm1 @@ -23,7 +23,7 @@ function WSLInstall # Start admin process, import this script, run 'InstallPackages' function Start-Process powershell.exe -Verb RunAs -Wait ` -ArgumentList "-ExecutionPolicy", "Bypass", ` - "-C", "'Import-Module ./wsl.psm1; InstallWSL'" + "-C", "'Import-Module ./util/wsl.psm1; InstallWSL'" } wsl.exe --install -d Ubuntu