nextstrain / .github

8 stars 11 forks source link

write-envdir: Explicitly error with a better message when a requested var is unset #87

Closed tsibley closed 4 months ago

tsibley commented 4 months ago

Eventually I'll dust off my WIP for nextstrain write-envdir which does this sort of nicety and more, and this Bash program will become obsolete.

Checklist

tsibley commented 4 months ago

Testing this in actual context results in a better error message:

mkdir: created directory '.git/nextstrain/env.d'
Wrote .git/nextstrain/env.d/AWS_ACCESS_KEY_ID
Wrote .git/nextstrain/env.d/AWS_SECRET_ACCESS_KEY
error: AWS_SESSION_TOKEN is not set