I have simple Envoy setup. A server:
@servers(['ws' => 'ws.sk'])
... And simple "ping" task:
@task('ping-ws', ['on' => 'ws'])
echo "Hello world from WS server!"
echo $(pwd)
pwd
var_1="Hello"
echo "${var_1}"
@endtask
Where I would like to assign some values to variables and access them later. Although the result is quite unexpected:
envoy run ping-ws
Hello world from WS server!
/Users/davidlukac/dev/drupal/_devdesktop/davidlukac
/home
The
$(pwd)
command is evaluated locally.Variable
var_1
is either not assigned, or out of scope on the next line.
Is this expected behaviour? Is there a workaround for it?