Test for directory existence before getting canonical path
This commit is contained in:
parent
b2569225cd
commit
e951358d0b
2
configure
vendored
2
configure
vendored
@ -91,7 +91,7 @@ while getopts -- ":-:" optchar; do
|
|||||||
pkgloc=${OPTARG#*=}
|
pkgloc=${OPTARG#*=}
|
||||||
# expand to full path since CMake changes to source directory (!)
|
# expand to full path since CMake changes to source directory (!)
|
||||||
# this also normalize the path name wrt. not having a trailing slash
|
# this also normalize the path name wrt. not having a trailing slash
|
||||||
pkgloc=$(sh -c "cd \"${pkgloc}\"; pwd")
|
pkgloc=$(test -d "${pkgloc}" && sh -c "cd \"${pkgloc}\"; pwd")
|
||||||
# special aliases
|
# special aliases
|
||||||
case "${pkgname}" in
|
case "${pkgname}" in
|
||||||
umfpack)
|
umfpack)
|
||||||
|
Loading…
Reference in New Issue
Block a user