Prevent PowerShell errors

This commit is contained in:
Manuel Thalmann 2024-12-11 01:12:52 +01:00
parent 1d1250a3e0
commit b36e3631ab
2 changed files with 2 additions and 2 deletions

View file

@ -6,7 +6,7 @@ begin
function configureSW -V dir function configureSW -V dir
source "$dir/../bash/profile.fish" source "$dir/../bash/profile.fish"
source "$dir/../fish/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" sudo install -Dm644 "$dir/aliae.yml" "$file"
begin begin

View file

@ -73,7 +73,7 @@ begin
set _flag_script $argv[1] set _flag_script $argv[1]
end 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 end
function runPSUserConfig function runPSUserConfig