You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Edit: Initial issue was solved, I was missing " symbol around variable. Above script is supposed to return linux-gnu since I'm running it on Ubuntu 18.04 server (It returns linux-gnu if I run it as bash script). But it's returning unknown when run as task. Does anyone know how to make it work?
This suggests, task scripts cannot access host OS ENVs?
The text was updated successfully, but these errors were encountered:
shinebayar-g
changed the title
Cannot make multiline dynamic variable working
How to detect Operating system and assign it to variable?
Nov 4, 2020
I'm trying to detect operating system of the server and assign it to variable. Here is my Taskfile.
Edit: Initial issue was solved, I was missing
"
symbol around variable. Above script is supposed to returnlinux-gnu
since I'm running it on Ubuntu 18.04 server (It returnslinux-gnu
if I run it as bash script). But it's returningunknown
when run as task. Does anyone know how to make it work?This suggests, task scripts cannot access host OS ENVs?
The text was updated successfully, but these errors were encountered: