We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If the .env file resides at the top of a mounted filessytem, it is not read.
Example setup:
# mount /dev/sda1 on / type ext4 (rw) /dev/loop0 on /mnt/image type ext4 (rw)
Putting an .env file into /mnt/test works. Putting an .env file into /mnt/image does not work - it is not picked up:
/mnt/test
/mnt/image
[dirk@centos ~]$ cd /mnt/image + cd /mnt/image + autoenv_cd /mnt/image + set -x + command -v chdir + builtin cd /mnt/image + '[' 0 -eq 0 ']' + autoenv_init + local _mountpoint _files _orderedfiles _sedregexp + '[' linux-gnu '!=' linux-gnu ']' + _sedregexp=-r ++ awk 'END{print $NF}' ++ df /mnt/image + _mountpoint=/mnt/image ++ sed -r s:/+:/:g ++ echo /mnt/image + PWD=/mnt/image + command -v chdir + builtin cd /mnt/image ++ _hadone= +++ pwd -P ++ '[' /mnt/image '!=' /mnt/image ']' + _files= ++ grep -q shwordsplit ++ setopt + zsh_shwordsplit= + '[' -z '' ']' + setopt shwordsplit + origIFS=' ' + IFS=' ' + _orderedfiles= + '[' -z '' ']' + IFS=' ' + '[' -z '' ']' + unsetopt shwordsplit + return 0 ++ printf '\033]0;%s@%s:%s\007' dirk centos /mnt/image
The text was updated successfully, but these errors were encountered:
Fix .env files at mountpoints
5aa1bed
Closes hyperupcall#146
Does #147 fix this for you?
Sorry, something went wrong.
Yes, it does. Works like a charm with mounted filesystems and regular folders.
Thanks for the quick fix.
dasJ
No branches or pull requests
If the .env file resides at the top of a mounted filessytem, it is not read.
Example setup:
Putting an .env file into
/mnt/test
works. Putting an .env file into/mnt/image
does not work - it is not picked up:The text was updated successfully, but these errors were encountered: