replace more syntax that makes the dash shell cranky (#187)

This commit is contained in:
Jeff Williams 2012-09-21 09:14:47 -07:00
parent 9f8f7bfba8
commit 0a199914a1

2
jsdoc
View File

@ -6,7 +6,7 @@ while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
# Get a Windows path under MinGW or Cygwin
BASEPATH="$( cd -P "$( dirname "$SOURCE" )" && (pwd -W 2>/dev/null || cygpath -w $(pwd) 2>/dev/null || pwd))"
if [ "${BASEPATH%${BASEPATH#?}}" != "/" ] ; then
BASEPATH="${BASEPATH//\\//}"
BASEPATH="$( echo "$BASEPATH" | sed -e 's@\\@/@g' )"
# We need a extra slash for URLs
UBASEPATH="/$BASEPATH"
else