cputest: Fix name of the file removed by cpu-parse.sh

We want to remove the file created by

    json <<<"$data" >$fname.json

in case it was empty.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
Jiri Denemark 2017-02-16 14:44:33 +01:00
parent 4337bc57be
commit 78d27c6501

View File

@ -53,5 +53,5 @@ json <<<"$data" >$fname.json
if [[ -s $fname.json ]]; then
echo $fname.json
else
rm $fname.new.json
rm $fname.json
fi