From fde022fad4b939fbbfc093806006d2ca7d2d8f7b Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Thu, 19 Sep 2024 22:24:58 +0200 Subject: [PATCH] Allow configuring `vscode` for any user --- scripts/Common/Software/vscode/main.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/Common/Software/vscode/main.fish b/scripts/Common/Software/vscode/main.fish index 6cf00c40..66a9e95f 100755 --- a/scripts/Common/Software/vscode/main.fish +++ b/scripts/Common/Software/vscode/main.fish @@ -3,8 +3,8 @@ begin set -l dir (status dirname) source "$dir/../../Scripts/software.fish" - function userConfig -V dir -a name - pwsh "$dir/Main.ps1" ConfigureUser; + function userConfig -V dir -a user + pwsh -CommandWithArgs '& $args[0] ConfigureUser @{ name=$args[1]; }' "$dir/Main.ps1" $user end runInstaller $argv