diff --git a/README.md b/README.md index b54f087..31ed663 100644 --- a/README.md +++ b/README.md @@ -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). diff --git a/scripts/wsl_start.ps1 b/scripts/wsl_start.ps1 index ad04470..fc8ff26 100644 --- a/scripts/wsl_start.ps1 +++ b/scripts/wsl_start.ps1 @@ -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