Browse Source

if a dierectory is spcifyed echo the directory being processed

Bill Gianopoulos 3 years ago
parent
commit
c8def4bcf3
1 changed files with 2 additions and 6 deletions
  1. 2 6
      scripts/check_series.sh

+ 2 - 6
scripts/check_series.sh

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