diff options
author | Michael Palimaka <kensington@gentoo.org> | 2016-01-26 01:04:11 +1100 |
---|---|---|
committer | Michael Palimaka <kensington@gentoo.org> | 2016-01-26 01:07:04 +1100 |
commit | 98f55297aa8b7514458cbc6b4f759978584ee0fc (patch) | |
tree | fb159218b7c1a8bcdd9bc5bea4e62c5b99cad781 /eclass/cmake-utils.eclass | |
parent | cmake-utils.eclass: check exit codes of executed commands (diff) | |
download | gentoo-98f55297aa8b7514458cbc6b4f759978584ee0fc.tar.gz gentoo-98f55297aa8b7514458cbc6b4f759978584ee0fc.tar.bz2 gentoo-98f55297aa8b7514458cbc6b4f759978584ee0fc.zip |
cmake-utils.eclass: use a proper if statement
Diffstat (limited to 'eclass/cmake-utils.eclass')
-rw-r--r-- | eclass/cmake-utils.eclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass index 58f93accb123..b20f5c24b7c9 100644 --- a/eclass/cmake-utils.eclass +++ b/eclass/cmake-utils.eclass @@ -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 |