Fix grep usage inside pool automation
authorMichael Prokop <devnull@localhost>
Thu, 25 Oct 2007 12:11:40 +0000 (14:11 +0200)
committerMichael Prokop <devnull@localhost>
Thu, 25 Oct 2007 12:11:40 +0000 (14:11 +0200)
grml-live

index d595a41..e1d7187 100755 (executable)
--- 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