Browse Source

Revert "if a dierectory is spcifyed echo the directory being processed"

This reverts commit c8def4bcf36015151817b5ab96d0d1a6faf3b026.
Bill Gianopoulos 3 years ago
parent
commit
177a2693f7
1 changed files with 6 additions and 2 deletions
  1. 6 2
      scripts/check_series.sh

+ 6 - 2
scripts/check_series.sh

@@ -4,7 +4,6 @@ if [ "$1" = "" ]
 then
   pushd . >/dev/null
 else
-  echo Checking $1 ...
   pushd $1 >/dev/null
 fi
 if [ ! -f series ]
@@ -17,7 +16,12 @@ for i in *
 do
   if [ "$i" != "series" -a "$i" != "status" ]
   then
-    echo $i | grep [^A-Za-z0-9_-i.] && echo illegal character in filename $i && ERRORS=`expr $ERRORS + 1`
+    j=`echo $i | sed -e 's@[A-Za-z0-9_.-]@@g'`
+    if [ "$j" != "" ]
+    then
+      echo illiegal character\(s\) \'$j\' in filename \'$i\'
+      ERRORS=`expr $ERRORS + 1`
+    fi
     j=`echo $i | sed -e 's@\.@\\\.@g'`
     COUNT=`grep ^$j$ series | wc | sed -e 's@^\s*@@g' -e 's@ .*$@@g'`
     if [ "$COUNT" != "1" ]