Closed shayaantx closed 3 years ago
Actually the same single quote stripping would need to happen in the below code too, so probably best to strip single/double quotes right after reading the environment variable
nvm I should be wrapping the entire environment variable (including the key in single or double quotes)
Hi,
I had a docker compose block below and the first single quote was preventing the directory from being read which resulted in "WARNING: skipping NFS_EXPORT_0 environment variable since '/downloads is not a container directory"
The culprit code is below:
https://github.com/ehough/docker-nfs-server/blob/f97055c848d80fd97b688109255e6d9b95b77355/entrypoint.sh#L458 https://github.com/ehough/docker-nfs-server/blob/f97055c848d80fd97b688109255e6d9b95b77355/entrypoint.sh#L460
We can strip the single quotes easily (see below), lemme know, and I can put up a PR if you want. Might want to consider also stripping double quotes. Or we could make the change against the $line variable before we try to read it into an array.
Or lemme know if I'm missing something obvious here.
Thanks