From 09aa95420dda8511a96d4bd7fffd2091356f1508 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sat, 12 Oct 2024 01:01:01 +0200 Subject: [PATCH] Add a script for running PS user actions --- scripts/Common/Scripts/software.fish | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/Common/Scripts/software.fish b/scripts/Common/Scripts/software.fish index c56f840a..4b2197d8 100755 --- a/scripts/Common/Scripts/software.fish +++ b/scripts/Common/Scripts/software.fish @@ -6,8 +6,12 @@ begin functions -e configureSW functions -e userConfig + function runPSUserAction -a script action name + pwsh -CommandWithArgs '& $args[0] $args[1] @{ name=$args[2]; }' "$script" "$action" "$name" + end + function runPSUserConfig -a script name - pwsh -CommandWithArgs '& $args[0] ConfigureUser @{ name=$args[1]; }' "$script" "$name" + runPSUserAction "$script" ConfigureUser "$name" end function runInstaller -V dir -a action