Fix: run-cppcheck restore tabs where needed
Change-Id: Iad6ea19811557764e3635a446df50fa31440aec9
Signed-off-by: Dean Birch <dean.birch@arm.com>
diff --git a/run-cppcheck.sh b/run-cppcheck.sh
index b1efb4d..c9a356b 100755
--- a/run-cppcheck.sh
+++ b/run-cppcheck.sh
@@ -129,16 +129,16 @@
echo "CppCheck: Ignoring files not contained in the build config"
if [ "$RAW_OUTPUT" == "0" ] ; then
# Always generate an empty file for other stages of ci expecting one
- echo "Files Ignored: $flist"
- cat > chk-config.xml <<- EOF
- <?xml version="1.0" encoding="UTF-8"?>
- <results version="2">
- <cppcheck version="$(cppcheck --version)"/>
- <errors>
- </errors>
- </results>
- EOF
- cp chk-config.xml chk-src.xml
+ echo "Files Ignored: $flist"
+ cat <<-EOF > chk-config.xml
+ <?xml version="1.0" encoding="UTF-8"?>
+ <results version="2">
+ <cppcheck version="$(cppcheck --version)"/>
+ <errors>
+ </errors>
+ </results>
+ EOF
+ cp chk-config.xml chk-src.xml
fi
exit 0
fi