Skip to content

Commit

Permalink
Merge pull request #33 from jdudek/jd-unset-cdpath
Browse files Browse the repository at this point in the history
Fix a failure that occurs when CDPATH is set
  • Loading branch information
davidchambers committed Dec 1, 2016
2 parents d35f713 + be2e1e7 commit e70a9ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions xyz
Expand Up @@ -55,6 +55,7 @@ Options:
"

# http://stackoverflow.com/a/246128/312785
unset CDPATH
path="${BASH_SOURCE[0]}"
while [ -h "$path" ] ; do
dir="$(cd -P "$(dirname "$path")" && pwd)"
Expand Down

0 comments on commit e70a9ba

Please sign in to comment.