]> Kevux Git Server - fll/commit
Cleanup: restructure bash script cleanup process
authorKevin Day <thekevinday@gmail.com>
Fri, 1 May 2020 04:56:26 +0000 (23:56 -0500)
committerKevin Day <thekevinday@gmail.com>
Fri, 1 May 2020 05:01:09 +0000 (00:01 -0500)
commitc6ae51b95c7fcbeafd2af329277a6e301b0e9997
tree7eccafbbbc823edc3ce8564329a7e9b945b1c742
parent206bf3c1c47edc315d170bfba733de9e6874cde0
Cleanup: restructure bash script cleanup process

Explicitly return 0 in main.

The cleanup function can be called within the functions being removed.
This is handy in that the cleanup no longer has to be called after the main function.
The error code can then be properly returned without being lost due to the cleanup function.
Once this is done, return can be used instead of exit (which is generally safer).
build/scripts/generate.sh
build/scripts/install.sh
build/scripts/package.sh