Commit Graph

9 Commits

Author SHA1 Message Date
Rezart Qelibari c141b2f1f2 Clean up even in case of SIGINT and SIGTERM
ZSHs `trap EXIT` does not handle interrupt or termination signals.
2022-01-23 18:35:48 +01:00
Rezart Qelibari b70d93d73a Fix typo 2022-01-23 18:35:33 +01:00
Rezart Qelibari 07aa9a5d01 Use local variable value for trap at parse time
`trap` can not access the value of a variable defined as local once the
function body is left. So we use the value of the variable at parse time
instead of trying to access the value at runtime of the `trap` command.
2022-01-23 18:19:36 +01:00
Rezart Qelibari 8e60af9430 Do not delete temporary dir if DEBUG is set
To inspect the state of the application it is useful to checkout the
directory content of the temporary working directory. Setting the DEBUG
variable to either 1 or true stops bootstrap.sh to delete that directory,
which it does regardless if the app finished successfully or because of
an error.
2022-01-23 18:15:36 +01:00
Rezart Qelibari 069e13b863 Allow different repo urls in bootstrap.sh for dev
Having to clone from github or a remote repository in general during
development is a waste of bandwidth, time and does not work during
development while a change is being tested and not yet commited or
pushed. Now remote urls can be configured through two env variables:
MACOS_SYSTEM_REPO_URL and ZSHLIB_REPO_URL.
2022-01-23 17:57:14 +01:00
Rezart Qelibari b051463245 Autoload zshlib functions 2022-01-23 17:09:39 +01:00
Rezart Qelibari a80e1ed88f Run git quietly 2022-01-23 17:09:39 +01:00
Rezart Qelibari 621ca56eca Add astzweig/zshlib as submodule 2022-01-23 17:09:26 +01:00
Rezart Qelibari 74494ab45d Let the journey begin 2022-01-23 00:15:39 +01:00