[Swift-commit] r3761 - provenancedb/apps/oops

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Fri Dec 10 12:40:14 CST 2010


Author: lgadelha
Date: 2010-12-10 12:40:14 -0600 (Fri, 10 Dec 2010)
New Revision: 3761

Modified:
   provenancedb/apps/oops/raptor_extractor.sh
Log:
Minor fixes to RaptorLoops provenance extractor.


Modified: provenancedb/apps/oops/raptor_extractor.sh
===================================================================
--- provenancedb/apps/oops/raptor_extractor.sh	2010-12-10 18:12:34 UTC (rev 3760)
+++ provenancedb/apps/oops/raptor_extractor.sh	2010-12-10 18:40:14 UTC (rev 3761)
@@ -45,8 +45,8 @@
 		
 		$SQLCMD -t -A -F " " -f query.sql -o result.txt
 		
-                DATASET_ID=$(awk '{print $1}' result.txt)
-		FILENAME=$(awk '{print $2}' result.txt | sed 's/file:\/\/localhost\///g')
+        DATASET_ID=`awk '{if (NR==1) print $1}' result.txt`
+        FILENAME=`awk '{if (NR==1) print $2}' result.txt | sed 's/file:\/\/localhost\///g'`
 		
 		cd $PROTESTS_HOME/$k/run.raptorloops.$OOPS_RUN_ID
 		




More information about the Swift-commit mailing list