[Swift-commit] r3589 - trunk/libexec

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Mon Aug 30 23:48:13 CDT 2010


Author: wilde
Date: 2010-08-30 23:48:13 -0500 (Mon, 30 Aug 2010)
New Revision: 3589

Modified:
   trunk/libexec/_swiftwrap.staging
Log:
Check for null directory before making input or output data directories. This error was obscured in _swiftwrap but caused mkdir -p to fail in _swiftwrap.staging. Also Corrected a minor typo in an error leg, STDER -> STDERR.

Modified: trunk/libexec/_swiftwrap.staging
===================================================================
--- trunk/libexec/_swiftwrap.staging	2010-08-30 19:16:01 UTC (rev 3588)
+++ trunk/libexec/_swiftwrap.staging	2010-08-31 04:48:13 UTC (rev 3589)
@@ -58,7 +58,7 @@
 		exit 0
 	else
 		if [ "X$STDERR" != "X" ]; then
-			echo "$@" >>$STDER
+			echo "$@" >>$STDERR
 		fi
 		exit $EC
 	fi
@@ -231,7 +231,9 @@
 
 logstate "CREATE_INPUTDIR"
 for D in $DIRS ; do
-	mkdir -p "$D" 2>&1 >>"$INFO"
+	if [ _$D != _ ]; then
+		mkdir -p "$D" 2>&1 >>"$INFO"
+	fi
 	checkError 254 "Failed to create input directory $D"
 	log "Created output directory: $D"
 done




More information about the Swift-commit mailing list