Open fxierh opened 9 months ago
#!/usr/bin/env bash cleanup() { echo "foo" } cleanup2() { echo "bar" } echo "start" trap cleanup EXIT trap cleanup2 EXIT
$ shellcheck myscript No issues detected!
A warning.
For new checks and feature suggestions
Here's a snippet or screenshot that shows the problem:
Here's what shellcheck currently says:
Here's what I wanted or expected to see:
A warning.