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

This commit is contained in:
Mike Frysinger 2016-05-07 16:04:33 -04:00
parent 060a341e10
commit 1294da6932

View file

@ -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