entrypoint.sh: Small improvements
We can't quote argument 1, as it is expected to contain multiple whitespace-seprated parameters and we need to expand any globs in it. This adds the use of "tee", so that the output goes to both the file specified in $2 and also to stdout (so the results are directly visible in the CI/CD display). Signed-off-by: David A. Wheeler <dwheeler@dwheeler.com>
This commit is contained in:
parent
09b128946c
commit
982e703f2a
|
@ -1,5 +1,5 @@
|
|||
#!/bin/sh -l
|
||||
# $1 arguments. BEWARE: Some filenames may need to be escaped.
|
||||
# $1 whitespace-separated arguments. Some filenames may need to be escaped.
|
||||
# $2 output filename
|
||||
|
||||
flawfinder "$@" > "$2"
|
||||
flawfinder $1 | tee "$2"
|
||||
|
|
Loading…
Reference in New Issue