Fix parameter remote

This commit is contained in:
Mario Romero 2023-09-06 01:45:53 -03:00
parent 933aac42cc
commit 92ee84b78a
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ There are scripts provided for running the containers for each OS, this is becau
Execute the next script in powershell.
```pwsh
iex "& { $(irm https://git.1159.cl/Mario1159/osic-stacks/raw/branch/main/scripts/wsl_start.ps1) } Run Job"
& ([scriptblock]::Create((irm https://git.1159.cl/Mario1159/osic-stacks/raw/branch/main/scripts/wsl_start.ps1))) -remote
```
This script will run the container inside wsl and bind the enviroments variables for [wslg](https://github.com/microsoft/wslg/blob/main/samples/container/Containers.md).

View File

@ -4,7 +4,7 @@ $imagename = Read-Host -Prompt 'Container image to initialize'
$containername = Read-Host -Prompt 'Container instance name [default=$imagename]'
if (!$containername) { $containername = $imagename }
if($remote -eq "remote") {
if($remote) {
$image = "git.1159.cl/mario1159/$imagename"
} else {
$image = $imagename