Commit 7d29b7f0 authored by thorsten.vitt's avatar thorsten.vitt
Browse files

Improved task pattern detectino

parent 6608086e
......@@ -307,7 +307,7 @@ die() {
task() {
spec="$1"
echo "Running subtask '$spec' ..."
echo "Running subtask '$spec' ($corpusdir) ..."
if [ -r "$spec" ]
then
echo "(a) file $spec"
......@@ -322,7 +322,7 @@ task() {
pipeline "$corpusdir/Literatur-${spec}.xml"
else
echo "(d) ... trying to read $spec as a pattern ..."
find "$corpusdir" -name "$spec" -or -name "Literatur-${spec}.xml" |\
find "$corpusdir" -iname "*$spec*" |\
while read f
do
echo " - match: $f"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment