From b36e3631ab3e8c65c3d35c79a88061210b55c13a Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Wed, 11 Dec 2024 01:12:52 +0100 Subject: [PATCH] Prevent PowerShell errors --- scripts/Common/Software/aliae/main.fish | 2 +- scripts/lib/software.fish | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/Common/Software/aliae/main.fish b/scripts/Common/Software/aliae/main.fish index c67001a1..385c4fa5 100755 --- a/scripts/Common/Software/aliae/main.fish +++ b/scripts/Common/Software/aliae/main.fish @@ -6,7 +6,7 @@ begin function configureSW -V dir source "$dir/../bash/profile.fish" source "$dir/../fish/profile.fish" - set -l file (pwsh -CommandWithArgs '. $args[0]; Get-GlobalConfigPath' "$dir/Constants.ps1") + set -l file (pwsh -NoProfile -CommandWithArgs '. $args[0]; Get-GlobalConfigPath' "$dir/Constants.ps1") sudo install -Dm644 "$dir/aliae.yml" "$file" begin diff --git a/scripts/lib/software.fish b/scripts/lib/software.fish index 06082ad4..af6b03b2 100755 --- a/scripts/lib/software.fish +++ b/scripts/lib/software.fish @@ -73,7 +73,7 @@ begin set _flag_script $argv[1] end - pwsh -CommandWithArgs '& $args[0] $args[1] @{ name=$args[2]; }' "$_flag_script" "$_flag_action" "$_flag_user" + pwsh -NoProfile -CommandWithArgs '& $args[0] $args[1] @{ name=$args[2]; }' "$_flag_script" "$_flag_action" "$_flag_user" end function runPSUserConfig