mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
replace more syntax that makes the dash shell cranky (#187)
This commit is contained in:
parent
9f8f7bfba8
commit
0a199914a1
2
jsdoc
2
jsdoc
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user