[Swift-commit] r3735 - trunk/libexec

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Mon Dec 6 13:18:11 CST 2010


Author: wilde
Date: 2010-12-06 13:18:11 -0600 (Mon, 06 Dec 2010)
New Revision: 3735

Modified:
   trunk/libexec/cdm_lib.sh
Log:
Correct the argument handling for CDM LOCAL file action.

Modified: trunk/libexec/cdm_lib.sh
===================================================================
--- trunk/libexec/cdm_lib.sh	2010-12-06 19:13:44 UTC (rev 3734)
+++ trunk/libexec/cdm_lib.sh	2010-12-06 19:18:11 UTC (rev 3735)
@@ -51,12 +51,16 @@
 			fi
 			;;
  		LOCAL)
- 			TOOL=${ARGS[0]}
- 			REMOTE_DIR=${ARGS[1]}
- 			FLAGS=${ARGS[3]}
- 			log "CDM[LOCAL]: Copying $DIRECT_DIR/$FILE to $JOBDIR/$FILE"
+ 			#TOOL=${ARGS[0]}
+ 			#REMOTE_DIR=${ARGS[1]}
+ 			#FLAGS=${ARGS[3]}
+			TOOL=$1
+			REMOTE_DIR=$2
+			FLAGS=$3
+			log "CDM[LOCAL]: TOOL=$TOOL FLAGS=$FLAGS REMOTE_DIR=$REMOTE_DIR ARGS=$ARGS"
+ 			log "CDM[LOCAL]: Copying $REMOTE_DIR/$FILE to $JOBDIR/$FILE"
  			if [ $MODE == "INPUT" ]; then
- 				[ -f "$DIRECT_DIR/$FILE" ]
+ 				[ -f "$REMOTE_DIR/$FILE" ]
  				checkError 254 "CDM[LOCAL]: $REMOTE_DIR/$FILE does not exist!"
  				$TOOL $FLAGS $REMOTE_DIR/$FILE $JOBDIR/$FILE
  				checkError 254 "CDM[LOCAL]: Tool failed!"




More information about the Swift-commit mailing list