X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=scripts%2Fliburcu%2Fscan-build.sh;h=d290a6fd0a1ee67bd14695be9116b91e290a29d9;hb=944a6c86f6eab1c0b3d65c2f3f771764851baf05;hp=e4237ee207e260c77654672584ef499403423a60;hpb=6d35c32629ea5796dab7712e0d2643a372f25b3b;p=lttng-ci.git diff --git a/scripts/liburcu/scan-build.sh b/scripts/liburcu/scan-build.sh index e4237ee..d290a6f 100755 --- a/scripts/liburcu/scan-build.sh +++ b/scripts/liburcu/scan-build.sh @@ -45,13 +45,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 @@ -69,7 +69,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}"