check_requirements: write out output of safety check

Use tee to write the output of safety check just in case we need to
refer to it later.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
Paul Eggleton 2019-06-25 13:57:41 +12:00
parent 190a97fda4
commit 736c1104ae

View File

@ -32,8 +32,9 @@ deptree="deptree.txt"
echo "Creating $deptree"
pipdeptree > $deptree
pip install safety
echo "Running safety check"
safety check
safety="safety_check.txt"
echo "Running safety check (output also to $safety)"
safety check | tee $safety
deactivate
rm -rf $tmpdir