diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2023-12-15 13:46:21 +0100 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2023-12-15 13:46:21 +0100 |
commit | a2aa09baf8a1f4a98313f8691d999eaff8b4ceea (patch) | |
tree | 43edf78359912f93bd175bb1fd8ad28cc4206c6f /sfeed_gph.1 | |
parent | 63308527f5197ddbcad6b06c5c1bbaf12f997e57 (diff) |
sfeed_update: add die() function for exit and cleanup, respect $TMPDIR
- Add a die() helper function to cleanup and exit.
- NOTE that with an empty sfeedtmpdir the case rm -rf "" is fine.
- Respect $TMPDIR for creating temporary files like many UNIX tools do.
- Fix: when creating "${sfeedtmpdir}/ok" fails for some reason cleanup the
whole temporary directory as well.
- Fix: when the feeds() function is not defined exit with status code 1 (this
was incorrectly status code 0).
Reproduce: sfeed_update /dev/null; echo $?
Diffstat (limited to 'sfeed_gph.1')
0 files changed, 0 insertions, 0 deletions