Make config script platform independent
This commit is contained in:
parent
ee06982b21
commit
4b9ad41939
|
@ -76,12 +76,17 @@ $null = New-Module {
|
||||||
|
|
||||||
$scriptPath = "$PSScriptRoot/../../Common/Scripts/config.fish";
|
$scriptPath = "$PSScriptRoot/../../Common/Scripts/config.fish";
|
||||||
|
|
||||||
|
if (-not $IsWindows) {
|
||||||
|
$escapedPath = (fish -c 'string escape $argv' "$scriptPath");
|
||||||
|
fish -c ". $escapedPath; $Script";
|
||||||
|
} else {
|
||||||
function fish {
|
function fish {
|
||||||
wsl --shell-type login -- nix --extra-experimental-features "nix-command flakes" run nixpkgs`#fish -- $args
|
wsl --shell-type login -- nix --extra-experimental-features "nix-command flakes" run nixpkgs`#fish -- $args
|
||||||
}
|
}
|
||||||
|
|
||||||
fish -c ". $(ConvertTo-LinuxPath $scriptPath); $Script" | ConvertFrom-Json;
|
fish -c ". $(ConvertTo-LinuxPath $scriptPath); $Script" | ConvertFrom-Json;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
|
|
Loading…
Reference in a new issue