21 lines
No EOL
620 B
PowerShell
21 lines
No EOL
620 B
PowerShell
#!/bin/pwsh
|
|
param($context);
|
|
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
|
|
|
[Context] $context = $context;
|
|
$script = New-TemporaryFile;
|
|
$script = Rename-Item $script "$($script.Name).sh" -PassThru;
|
|
|
|
Write-Information "Preparing setup script";
|
|
|
|
Set-Content $script (
|
|
[string]::Join(
|
|
"`n",
|
|
@(
|
|
"SKIP_POWERSHELL=1 bash `"$PSScriptRoot/../../../Common/Config/aliae/install.sh`"",
|
|
"rm ~/.bashrc")));
|
|
|
|
$context.AddPowerShellProfileStatement("# aliae`naliae init pwsh | Invoke-Expression");
|
|
Write-Information "Running prepared script";
|
|
Start-Process -Wait $script;
|
|
Remove-Item $script; |