[PC-BSD Commits] r8081 - pcbsd-projects/warden/scripts/backend

svn at pcbsd.org svn at pcbsd.org
Mon Nov 29 08:53:45 PST 2010


Author: kris
Date: 2010-11-29 08:53:45 -0800 (Mon, 29 Nov 2010)
New Revision: 8081

Modified:
   pcbsd-projects/warden/scripts/backend/installinmate.sh
Log:

Fixed stray bash'ism in installinmate.sh script

Reported here:
https://trac.pcbsd.org/ticket/351



Modified: pcbsd-projects/warden/scripts/backend/installinmate.sh
===================================================================
--- pcbsd-projects/warden/scripts/backend/installinmate.sh	2010-11-29 16:41:23 UTC (rev 8080)
+++ pcbsd-projects/warden/scripts/backend/installinmate.sh	2010-11-29 16:53:45 UTC (rev 8081)
@@ -36,11 +36,13 @@
   exit 5
 fi
 
-if [ "${IFILE:0:1}" != "/" ]
+chk=`echo "${IFILE}" | cut -c 1-1`
+if [ "$chk" != "/" ]
 then
   IFILE="${PWD}/${IFILE}"
 fi
 
+
 if [ -z "${JDIR}" ]
 then
   echo "ERROR: JDIR is unset!!!!"



More information about the Commits mailing list