Skip to content

Commit

Permalink
Fix infinte loop when using symlinks across mounts
Browse files Browse the repository at this point in the history
  • Loading branch information
dasJ committed Aug 29, 2016
1 parent 99ce835 commit 10e675a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ autoenv_init() {
# We do this in a subshell so we can cd/chdir
_files="`
_hadone=''
while [ "${PWD}" != "${_mountpoint}" ]; do
while [ "$(pwd -P)" != "${_mountpoint}" ]; do
_file="${PWD}/${AUTOENV_ENV_FILENAME}"
if [ -f "${_file}" ]; then
if [ -z "${_hadone}" ]; then
Expand Down

0 comments on commit 10e675a

Please sign in to comment.