fix analyze-clean.sh
This commit is contained in:
@@ -4,9 +4,9 @@ report_dir=scan-build-$(tr -dc 'a-zA-Z0-9' < /dev/urandom | fold -w 6 | head -n
|
||||
|
||||
if make clean ; then
|
||||
scan-build -o "$report_dir" make -j CC=clang
|
||||
if ls "$report_dir" ; then
|
||||
if ls "$report_dir"/* &>/dev/null ; then
|
||||
scan-view "$report_dir"/*
|
||||
fi
|
||||
rm -rf "$report_dir"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user