summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/package.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/package.sh b/lib/package.sh
index df129c7..138609c 100644
--- a/lib/package.sh
+++ b/lib/package.sh
@@ -80,7 +80,7 @@ ob_init_package()
local dir="${1}"
shift 1 || _ob_abort
- _ob_package_dir="$(cd -- "${dir}" && pwd)"
+ _ob_package_dir="$(unset CDPATH; cd -- "${dir}" && pwd)"
_ob_package_format_full="$(cat -- "${_ob_package_dir}/format")"
if [ -r "${_ob_package_dir}/format" ]; then