jjb: babeltrace cleanups
[lttng-ci.git] / scripts / babeltrace / scan-build.sh
index 887de62861dc51ee6a05b4cd0c8c6f8a77675d26..117d5f9fe82e83aff0729af7a2dd4cf0a5c4c1ee 100755 (executable)
@@ -44,13 +44,13 @@ cd "$SRCDIR"
 ./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
@@ -68,7 +68,7 @@ else
     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}"
This page took 0.043782 seconds and 4 git commands to generate.