commit:     1294da69329b3541c50d96b09eb6249f5150ea91
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Sat May  7 20:04:33 2016 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Sat May  7 20:04:33 2016 +0000
URL:        https://gitweb.gentoo.org/proj/releng.git/commit/?id=1294da69

catalyst-auto: try to fix syntax error in previous commits

 tools/catalyst-auto | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/catalyst-auto b/tools/catalyst-auto
index 101cf82..51e0c16 100755
--- a/tools/catalyst-auto
+++ b/tools/catalyst-auto
@@ -253,7 +253,7 @@ for i in $(find -name '*.spec'); do
   sed -i 's|^snapshot:.*$|snapshot: '${DATESTAMP}'|' ${i}
 
   # We don't want to mangle the source_subpath for our stage1 spec
-  if ! [[ grep -q '^target: *stage1$' ${i} || grep -q '^target: *stage4$' ${i} 
]]; then
+  if ! grep -q '^target: *stage[14]$' ${i}; then
     sed -i 's|^source_subpath:.*$|source_subpath: '${new_source_subpath}'|' 
${i}
   fi
 

Reply via email to