From 3c0262af98b641fca571a29d9889ae67cbf74c0b Mon Sep 17 00:00:00 2001 From: Ludwig Nussel Date: Thu, 10 Dec 2009 16:41:33 +0100 Subject: [PATCH] fix for set -e --- common_functions | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common_functions b/common_functions index 6f0fe9c..8a67511 100644 --- a/common_functions +++ b/common_functions @@ -18,9 +18,9 @@ set_build_arch() if test "$BUILD_ARCH" != "${BUILD_ARCH#i686}" ; then cpuflags=`grep ^flags /proc/cpuinfo` cpuflags="$cpuflags " - test "$cpuflags" = "${cpuflags/ cx8 /}" -o "$cpuflags" = "${cpuflags/ cmov /}" && { + if test "$cpuflags" = "${cpuflags/ cx8 /}" -o "$cpuflags" = "${cpuflags/ cmov /}"; then echo "Your cpu doesn't support i686 rpms. Exit." - exit 1 - } + cleanup_and_exit 1 + fi fi } -- 2.7.4