--- foxridge-archiver/unarchivemany.sh 2006/06/23 09:40:12 1.4 +++ foxridge-archiver/unarchivemany.sh 2006/06/23 09:49:06 1.5 @@ -27,7 +27,8 @@ fi CNT=0 -cat $DIRLIST | while read DIR +# read directories from DIRLIST +while read DIR do CNT=$(( $CNT + 1 )) if [ -d "$BASEDIR/$DIR" ] @@ -43,9 +44,9 @@ do else echo "$CNT: ERROR: document directory $BASEDIR/$DIR not found!" fi -done +done < $DIRLIST -#if [ $CNT = "0" ] -#then -# echo "$CNT ERROR: the list file $DIRLIST seems to be empty!" -#fi +if [ $CNT = 0 ] +then + echo "$CNT ERROR: the list file $DIRLIST seems to be empty!" +fi