diff options
author | Teddy Wing | 2018-04-19 20:51:42 +0200 |
---|---|---|
committer | Teddy Wing | 2018-04-19 20:51:42 +0200 |
commit | 01ffc7bedf4d07bb2817c999384db54dbb950aa7 (patch) | |
tree | 23c832eecbab1bdfc4a2898c78d712f1659de8e4 /README.md | |
parent | 9909a132d5a855f69501d2258e29d8dab80ab522 (diff) | |
download | redprine-01ffc7bedf4d07bb2817c999384db54dbb950aa7.tar.bz2 |
Set `$CACHE_FILE` in `preflight()`
We had initialised the `$CACHE_FILE` variable at the start of the script,
but because at that point `$GITHUB_OWNER_REPO` is empty, the cache file
just ends up getting called ".json".
In order to get the name we want, we need to wait until the
`$GITHUB_OWNER_REPO` variable is initialised by the command line
argument.
Initialise `$CACHE_FILE` in `preflight()` because it makes sense to put
it in that kind of setup function. Move `preflight()` after
`parse_arguments()` to ensure the program variables (including
`$GITHUB_OWNER_REPO`) are properly validated and initialised before
running setup code.
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions