[Swift-commit] r7468 - branches/release-0.95/bin

davidk at ci.uchicago.edu davidk at ci.uchicago.edu
Fri Jan 10 10:10:28 CST 2014


Author: davidk
Date: 2014-01-10 10:10:27 -0600 (Fri, 10 Jan 2014)
New Revision: 7468

Modified:
   branches/release-0.95/bin/swiftrun
Log:
When setting workdirectory to $RUNDIRECTORY, don't create if using -listconfig


Modified: branches/release-0.95/bin/swiftrun
===================================================================
--- branches/release-0.95/bin/swiftrun	2014-01-10 16:10:00 UTC (rev 7467)
+++ branches/release-0.95/bin/swiftrun	2014-01-10 16:10:27 UTC (rev 7468)
@@ -372,7 +372,9 @@
 
 $run_directory = getcwd() . "/" . sprintf "run%03s", $run_number;
 $ENV{RUNDIRECTORY} = "$run_directory";
-mkdir($run_directory) || &swiftquit("Unable to create run directory $run_directory");
+if(!$option_listconfig) {
+   mkdir($run_directory) || &swiftquit("Unable to create run directory $run_directory");
+}
 
 # Set @sites array from comma separated list of sites
 if(defined($option_siteslist)) {




More information about the Swift-commit mailing list