[Swift-commit] r6571 - SwiftTutorials/CMTS_2013-06-17/bin

davidk at ci.uchicago.edu davidk at ci.uchicago.edu
Mon Jun 17 13:48:50 CDT 2013


Author: davidk
Date: 2013-06-17 13:48:50 -0500 (Mon, 17 Jun 2013)
New Revision: 6571

Modified:
   SwiftTutorials/CMTS_2013-06-17/bin/random4.sh
Log:
updated random4


Modified: SwiftTutorials/CMTS_2013-06-17/bin/random4.sh
===================================================================
--- SwiftTutorials/CMTS_2013-06-17/bin/random4.sh	2013-06-17 18:42:31 UTC (rev 6570)
+++ SwiftTutorials/CMTS_2013-06-17/bin/random4.sh	2013-06-17 18:48:50 UTC (rev 6571)
@@ -4,6 +4,10 @@
 range=${2:-30000}
 n=${3:-10}
 
+if [ -f "$2" ]; then
+   range=$( cat $2 )
+fi
+
 sleep $runtime
 
 for ((i=0;i<n;i++)); do




More information about the Swift-commit mailing list