You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2013/09/29 22:33:23 UTC

svn commit: r1527400 - /jena/trunk/jena-tdb/bin/tdbloader2worker

Author: andy
Date: Sun Sep 29 20:33:22 2013
New Revision: 1527400

URL: http://svn.apache.org/r1527400
Log:
Test for DB-looking files 

Modified:
    jena/trunk/jena-tdb/bin/tdbloader2worker

Modified: jena/trunk/jena-tdb/bin/tdbloader2worker
URL: http://svn.apache.org/viewvc/jena/trunk/jena-tdb/bin/tdbloader2worker?rev=1527400&r1=1527399&r2=1527400&view=diff
==============================================================================
--- jena/trunk/jena-tdb/bin/tdbloader2worker (original)
+++ jena/trunk/jena-tdb/bin/tdbloader2worker Sun Sep 29 20:33:22 2013
@@ -58,7 +58,9 @@ else 
     if [ "$ARG1" = "$LOC" ] ; then echo $USAGE 1>&2 ; exit 1 ; fi
 fi
 
-if test -n "$(find "$LOC" -maxdepth 1 -type f -print -quit)"
+# Look for any index and data files in the directory.
+# Skip a possible configuration file
+if test -n "$(find "$LOC" -maxdepth 1 -type f ! -name 'this.*' -print -quit)"
 then 
     echo "Not empty: $LOC"
     exit 1