From: Michael Prokop Date: Thu, 25 Oct 2007 12:11:40 +0000 (+0200) Subject: Fix grep usage inside pool automation X-Git-Tag: 0.0.7~35 X-Git-Url: https://git.grml.org/?p=grml-live.git;a=commitdiff_plain;h=5332d22f4acc07403d4cb17d6258542703a8f8d3 Fix grep usage inside pool automation --- diff --git a/grml-live b/grml-live index d595a41..e1d7187 100755 --- a/grml-live +++ b/grml-live @@ -254,7 +254,7 @@ if [ -n "$SUITE" ] ; then sed -i "s/\(deb .\+\)\([ \t]+\)$DIST\([ \t]+\)\(main \)/\1\2 $SUITE \3\4/" /etc/grml/fai/apt/sources.list # notice: activate grml-live pool only if we are building against unstable: if grep -qe unstable -qe sid /etc/grml/fai/apt/sources.list ; then - grep -q 'grml-live.*main' || \ + grep -q 'grml-live.*main' /etc/grml/fai/apt/sources.list || \ grep grml-stable /etc/grml/fai/apt/sources.list | \ sed 's/grml-stable/grml-live/' >> /etc/grml/fai/apt/sources.list else