aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorTeddy Wing2018-04-19 20:51:42 +0200
committerTeddy Wing2018-04-19 20:51:42 +0200
commit01ffc7bedf4d07bb2817c999384db54dbb950aa7 (patch)
tree23c832eecbab1bdfc4a2898c78d712f1659de8e4 /README.md
parent9909a132d5a855f69501d2258e29d8dab80ab522 (diff)
downloadredprine-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