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