[Swift-commit] r2367 - trunk/libexec

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Fri Dec 12 11:57:32 CST 2008


Author: benc
Date: 2008-12-12 11:57:31 -0600 (Fri, 12 Dec 2008)
New Revision: 2367

Modified:
   trunk/libexec/wrapper.sh
Log:
Better error message when unsuccessful in looking up applications on remote site $PATH

Modified: trunk/libexec/wrapper.sh
===================================================================
--- trunk/libexec/wrapper.sh	2008-12-11 16:27:06 UTC (rev 2366)
+++ trunk/libexec/wrapper.sh	2008-12-12 17:57:31 UTC (rev 2367)
@@ -164,8 +164,12 @@
 fi
 
 if [ "X${EXEC:0:1}" != "X/" ] ; then
+export ORIGEXEC=$EXEC
 export EXEC=$(which $EXEC)
+if [ "X$EXEC" = "X" ] ; then
+fail 254 "Cannot find executable $ORIGEXEC on site system path"
 fi
+fi
 
 log "DIR=$DIR"
 log "EXEC=$EXEC"




More information about the Swift-commit mailing list