From 3f2420b0322de700f66bf453e9d53d158e52a2cc Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Mon, 4 Jun 2012 23:26:39 +0200 Subject: [PATCH 1/1] Architecture sanity check: be more restrictive using a word-regexp grep --- grml-live | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grml-live b/grml-live index ef840f6..9f2add8 100755 --- a/grml-live +++ b/grml-live @@ -592,7 +592,7 @@ export SUITE # make sure it's available in FAI scripts # validate whether the specified architecture class matches the # architecture (option), otherwise installation of kernel will fail -if echo $CLASSES | grep -qi i386 ; then +if echo $CLASSES | grep -qw I386 ; then if ! [[ "$ARCH" == "i386" ]] ; then log "Error: You specified the I386 class but are trying to build something else (AMD64?)." eerror "Error: You specified the I386 class but are trying to build something else (AMD64?)." -- 2.1.4