Skip to content

Commit

Permalink
Fix a failure that occurs when CDPATH is set
Browse files Browse the repository at this point in the history
  • Loading branch information
jdudek committed Nov 29, 2016
1 parent d35f713 commit be2e1e7
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 be2e1e7

Please sign in to comment.