cmake-utils.eclass: use a proper if statement
authorMichael Palimaka <kensington@gentoo.org>
Mon, 25 Jan 2016 14:04:11 +0000 (01:04 +1100)
committerMichael Palimaka <kensington@gentoo.org>
Mon, 25 Jan 2016 14:07:04 +0000 (01:07 +1100)
eclass/cmake-utils.eclass

index 58f93accb12342330e617b856d5478214a46c0a6..b20f5c24b7c98545338a6c9627baad2d69cb8043 100644 (file)
@@ -428,12 +428,12 @@ enable_cmake-utils_src_prepare() {
 enable_cmake-utils_src_configure() {
        debug-print-function ${FUNCNAME} "$@"
 
-       [[ "${CMAKE_REMOVE_MODULES}" == "yes" ]] && {
+       if [[ "${CMAKE_REMOVE_MODULES}" == "yes" ]] ; then
                local name
                for name in ${CMAKE_REMOVE_MODULES_LIST} ; do
                        find "${S}" -name ${name}.cmake -exec rm -v {} + || die
                done
-       }
+       fi
 
        _check_build_dir