[Swift-commit] r6277 - trunk/bin

davidk at ci.uchicago.edu davidk at ci.uchicago.edu
Fri Feb 15 04:58:23 CST 2013


Author: davidk
Date: 2013-02-15 04:58:22 -0600 (Fri, 15 Feb 2013)
New Revision: 6277

Modified:
   trunk/bin/swiftrun
Log:
Make sure we are running from the local copy of the swift script


Modified: trunk/bin/swiftrun
===================================================================
--- trunk/bin/swiftrun	2013-02-15 10:36:37 UTC (rev 6276)
+++ trunk/bin/swiftrun	2013-02-15 10:58:22 UTC (rev 6277)
@@ -97,8 +97,8 @@
 timestamp=$( date +%s )
 ln -s $PWD $HOME/.swift/runs/current/$rundir.$timestamp 
 if [ -n "$CONFIG" ]; then
-   eval time swift -sites.file sites.xml -tc.file tc.data -config $CONFIG $script $args 2>&1 | tee swift.out
+   eval time swift -sites.file sites.xml -tc.file tc.data -config $CONFIG $( basename $script ) $args 2>&1 | tee swift.out
 else
-   eval time swift -sites.file sites.xml -tc.file tc.data $script $args 2>&1 | tee swift.out
+   eval time swift -sites.file sites.xml -tc.file tc.data $( basename $script ) $args 2>&1 | tee swift.out
 fi
 mv $HOME/.swift/runs/current/$rundir.$timestamp $HOME/.swift/runs/completed




More information about the Swift-commit mailing list