Whamcloud - gitweb
Protect the * from shell expansion producing:
authorbrian <brian>
Fri, 25 Nov 2005 20:56:36 +0000 (20:56 +0000)
committerbrian <brian>
Fri, 25 Nov 2005 20:56:36 +0000 (20:56 +0000)
build/lmake

index 78ce511..3bc75a9 100755 (executable)
@@ -563,7 +563,7 @@ build_kms()
     mkdir -p "${TOPDIR}/modules-${FULL_VERSION}"
     for dir in /usr/src/kernel-modules/* ; do
        # we are replacing lustre-lite, so don't include it
-       if [ ${dir##*/} != "lustre-lite" -a -e $dir/Makefile ]; then
+       if [ "${dir##*/}" != "lustre-lite" -a -e $dir/Makefile ]; then
            build_dir="${TOPDIR}/modules-${FULL_VERSION}/${dir##*/}"
            cp -a $dir $build_dir
            # these modules are terrible, and don't all build