From: Michael Prokop Date: Mon, 4 Jun 2012 21:26:39 +0000 (+0200) Subject: Architecture sanity check: be more restrictive using a word-regexp grep X-Git-Tag: v0.19.4~6 X-Git-Url: https://git.grml.org/?p=grml-live.git;a=commitdiff_plain;h=3f2420b0322de700f66bf453e9d53d158e52a2cc Architecture sanity check: be more restrictive using a word-regexp grep --- 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?)."