when using the following command:
url="http://localhost:8086/writedb=speedtest&u=${INFLUXDB_USERNAME}&p=${INFLUXDB_PASSWORD}"
and then echo "${url}"
Before I use source .env
to load my variables from the file:
INFLUXDB_USERNAME=admin
INFLUXDB_PASSWORD=admin
Leads to:
&p=adminocalhost:8086/write?db=speedtest&u=admin
curl: (3) Illegal characters found in URL