diff --git a/entrypoint.sh b/entrypoint.sh index 30746e4..f887f2e 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -2,4 +2,10 @@ # $1 whitespace-separated arguments. Some filenames may need to be escaped. # $2 output filename -flawfinder $1 | tee "$2" +output="${2:-flawfinder-output.txt}" + +flawfinder $1 > "$output" +result="$?" + +cat "$output" +exit "$result"