The following snippet of a bash script appears to function:
CF_Key=${CF_GLOBAL_API} CF_Email=${CF_EMAIL} ${ACME_PATH} --test --staging --issue --dns dns_cf -d ${DOMAIN_NAME}
However if I declare a variable and attempt to pass it to the script this does not:
ENV="CF_KEY=${CF_GLOBAL_API} CF_Email=${CF_EMAIL}"
${ENV} ${ACME_PATH} --test --staging --issue --dns dns_cf -d ${DOMAIN_NAME}
CF_Key=bsif987: command not found
I've even tried
"${ENV} ${ACME_PATH} --test --staging --issue --dns dns_cf -d ${DOMAIN_NAME}"
CF_Key=bsif987 [email protected] /root/.acme.sh/acme.sh --test --staging --issue --dns dns_cf -d test.gohilton.com: No such file or directory
Do I export the variables rather than pass them on command line?