From: Jiri Denemark Date: Thu, 16 Feb 2017 13:44:33 +0000 (+0100) Subject: cputest: Fix name of the file removed by cpu-parse.sh X-Git-Tag: CVE-2017-2635~94 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78d27c65010328ee2caf49f0332d13266e7f4879;p=thirdparty%2Flibvirt.git 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 --- diff --git a/tests/cputestdata/cpu-parse.sh b/tests/cputestdata/cpu-parse.sh index 1b5ab4a5aa..c3b5ef1066 100755 --- a/tests/cputestdata/cpu-parse.sh +++ b/tests/cputestdata/cpu-parse.sh @@ -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