[Swift-commit] r6781 - SwiftTutorials/ATPESC_2013-08-06/part11-swift-py-r/code

wozniak at ci.uchicago.edu wozniak at ci.uchicago.edu
Tue Aug 6 08:59:26 CDT 2013


Author: wozniak
Date: 2013-08-06 08:59:26 -0500 (Tue, 06 Aug 2013)
New Revision: 6781

Modified:
   SwiftTutorials/ATPESC_2013-08-06/part11-swift-py-r/code/run-dets.sh
Log:
Better fix


Modified: SwiftTutorials/ATPESC_2013-08-06/part11-swift-py-r/code/run-dets.sh
===================================================================
--- SwiftTutorials/ATPESC_2013-08-06/part11-swift-py-r/code/run-dets.sh	2013-08-06 13:49:29 UTC (rev 6780)
+++ SwiftTutorials/ATPESC_2013-08-06/part11-swift-py-r/code/run-dets.sh	2013-08-06 13:59:26 UTC (rev 6781)
@@ -1,8 +1,13 @@
 #!/bin/bash -e
 
 ATPESC=/projects/ATPESC2013/workflow
-cd $ATPESC/part11-swift-py-r/code
 
+if ! cd part11-swift-py-r/code
+then
+  echo Run this from the top-level ATPESC_2013-08-06 directory
+  exit 1
+fi
+
 stc dets.swift
 
 which turbine-cobalt-run.zsh




More information about the Swift-commit mailing list