github action: enforce issue detection with bash by d-a-v · Pull Request #8168 · esp8266/Arduino (original) (raw)
Per discussion with @mcspr.
When not specifiying bash
as running shell, default options do not include -o pipefail
as it should.
It may not prevent a script to stop when one component of a pipe chain fails (ex: false | true
won't fail but it should).
As a consequence in this PR, bash
is explicitely specified as default shell.
Also enforcing issue detection by breaking down commandsecho "$(command)" >> file
=> var=$(command)
then echo ${var} >> file