From 5332d22f4acc07403d4cb17d6258542703a8f8d3 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Thu, 25 Oct 2007 14:11:40 +0200 Subject: [PATCH] Fix grep usage inside pool automation --- grml-live | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.1.4