mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user