./bootstrap
-./configure --prefix=$PREFIX
+./configure --prefix="$PREFIX"
# generate the scan-build report
-scan-build -k -o ${SCAN_BUILD_TMPDIR} make
+scan-build -k -o "${SCAN_BUILD_TMPDIR}" make
# get the directory name of the report created by scan-build
-SCAN_BUILD_REPORT=$( find ${SCAN_BUILD_TMPDIR} -maxdepth 1 -not -empty -not -name `basename ${SCAN_BUILD_TMPDIR}` )
+SCAN_BUILD_REPORT=$( find "${SCAN_BUILD_TMPDIR}" -maxdepth 1 -not -empty -not -name "`basename ${SCAN_BUILD_TMPDIR}`")
rc=$?
if [ -z "${SCAN_BUILD_REPORT}" ]; then
fi
echo ">>> Archiving scan-build report to ${SCAN_BUILD_ARCHIVE}"
- mv ${SCAN_BUILD_REPORT}/* ${SCAN_BUILD_ARCHIVE}/
+ mv "${SCAN_BUILD_REPORT}/*" "${SCAN_BUILD_ARCHIVE}/"
echo ">>> Removing any temporary files and directories"
rm -rf "${SCAN_BUILD_TMPDIR}"