flawfinder/entrypoint.sh

12 lines
217 B
Bash
Raw Permalink Normal View History

#!/bin/sh -l
# $1 whitespace-separated arguments. Some filenames may need to be escaped.
2021-06-24 20:56:59 +02:00
# $2 output filename
output="${2:-flawfinder-output.txt}"
flawfinder $1 > "$output"
result="$?"
cat "$output"
exit "$result"