Bash variables, curly braces

Hello,

Drone seems to eat the variables if I use the ${VAR} syntax.

$VAR works fine.

Example:

pipeline:
  test:
    image: debian:stable-slim
    commands:
    - export MYVAR=test
    - echo $MYVAR
    - echo ${MYVAR}

Produces:

drone exec --local
[test:L0:0s] + export MYVAR=test
[test:L1:0s] + echo $MYVAR
[test:L2:0s] test
[test:L3:0s] + echo
[test:L4:0s]

Is this intended?

I’m using Drone 0.8.2

http://docs.drone.io/environment/

Please be warned that ${variable} expressions are subject to pre-processing. If you do not want the pre-processor to evaluate your expression it must be escaped:

pipeline:
  build:
    image: golang
    commands:
-     - export PATH=${PATH}:/go
+     - export PATH=$${PATH}:/go
      - go build
      - go test

Fantastic, thank you!