Problem: Env Interpolation in Scripts
bjesuiter opened this issue · comments
I use the following script definitions (simplified for shortness):
envFile:
- .env
scripts:
install:
cmd: deno install --name ${CLI_NAME} main.ts
allow:
read: true
run: true
net: 'deno.land,x.nest.land'
Problem
CLI_NAME is empty on windows in this setting
Wanted Behavior
CLI_NAME contains the right content as loaded from .env and is correctly interpolated for running the command
Hey @bjesuiter, please consider that the command string is executed into a different shell depending on the OS and vr configuration (see Shell scripting) and variable substitution is managed by that shell, not by vr.
In your case, unless you changed the VR_SHELL
env variable, the command should be executed in PowerShell, where it looks like the ${}
syntax is not used for variable substitution (my Windows/PowerShell knowledge is pretty limited so please double check). Does $CLI_NAME
work?