From b1b067bdb6221e782bb16594250aaf5908065f00 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Thu, 19 Sep 2024 21:56:32 +0200 Subject: [PATCH] Configure `aliae` for individual Linux users --- scripts/Arch/Software/aliae/main.fish | 9 +++++++-- scripts/Common/Software/aliae/main.fish | 4 ++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/scripts/Arch/Software/aliae/main.fish b/scripts/Arch/Software/aliae/main.fish index a6592360..9ccd4568 100755 --- a/scripts/Arch/Software/aliae/main.fish +++ b/scripts/Arch/Software/aliae/main.fish @@ -1,6 +1,7 @@ #!/bin/env fish begin set -l dir (status dirname) + set -l base "$dir/../../../Common/Software/aliae/main.fish" source "$dir/../../Scripts/software.fish" function installSW @@ -8,8 +9,12 @@ begin aliae-bin end - function configureSW -V dir - fish "$dir/../../../Common/Software/aliae/main.fish" configure + function configureSW -V base + fish "$base" configure + end + + function userConfig -V base + fish "$base" userConfig $argv end runInstaller $argv diff --git a/scripts/Common/Software/aliae/main.fish b/scripts/Common/Software/aliae/main.fish index 0afe73f6..0d0dbbaa 100755 --- a/scripts/Common/Software/aliae/main.fish +++ b/scripts/Common/Software/aliae/main.fish @@ -40,5 +40,9 @@ begin end end + function userConfig -V dir -a user + pwsh -CommandWithArgs '& $args[0] ConfigureUser @{ name=$args[1]; }' "$dir/Main.ps1" $user + end + runInstaller $argv end