I've seen this on Jenkins:
/usr/local/bin/build-tails: 107: /usr/local/bin/build-tails: [[: not found
And indeed, "[[" does not exist in dash.
Regression introduced in af0ff460, not present in current stable.
The second bug fixed here has been present since 4.11.