Skip to content

Commit

Permalink
made .env import error msg more clear
Browse files Browse the repository at this point in the history
  • Loading branch information
Cielquan committed Nov 25, 2019
1 parent 6b84f30 commit ae21fc2
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions start_doth_dns.bash
Expand Up @@ -147,10 +147,14 @@ printf "\n%bINFO: %b Starting setup for DoTH-DNS.\n\n\n" "${CYAN}" "${BLANK}"
if [[ ${_FLAG_FRESH} == 'y' ]]; then
printf "%bINFO: %b Skipped loading of '.env'.\n\n" "${CYAN}" "${BLANK}"
else
if [[ -f .env ]] && . .env; then
printf "%bINFO: %b .env loaded.\n\n" "${CYAN}" "${BLANK}"
if [[ -f .env ]]; then
if . .env; then
printf "%bINFO: %b .env loaded.\n\n" "${CYAN}" "${BLANK}"
else
printf "%bWARNING:%b Failed to load '.env'. Falling back to self gather information.\n\n" "${ORANGE}" "${BLANK}"
fi
else
printf "%bWARNING:%b Failed to load '.env'. Falling back to self gather information.\n\n" "${ORANGE}" "${BLANK}"
printf "%bWARNING:%b No '.env' file found. Falling back to self gather information.\n\n" "${ORANGE}" "${BLANK}"
fi
fi

Expand Down

0 comments on commit ae21fc2

Please sign in to comment.