Commit Graph

29 Commits

Author SHA1 Message Date
T. R. Bernstein
10b9b857b1 Require root privileges only when neccessary 2024-06-27 10:34:50 +02:00
T. R. Bernstein
5d8efcf238 Run bootstrap.sh even when given as cmd arg 2024-06-26 21:00:21 +02:00
Rezart Qelibari
150934bee5 Merge all trap calls to stop override 2022-04-20 05:53:37 +02:00
Rezart Qelibari
08214f99aa Preserve brew git remotes env variables for sudo 2022-04-20 00:46:45 +02:00
Rezart Qelibari
4296814786 Add MACOS_SYSTEM_DEBUG 2022-04-05 19:48:16 +02:00
Rezart Qelibari
366bd3c706 Preserve env vars and do shallow copy 2022-04-05 18:47:17 +02:00
Rezart Qelibari
3b70137c27 Hide cursor during installation run 2022-03-31 12:23:13 +02:00
Rezart Qelibari
471d41bf11 Disable tty echo during installation run 2022-03-31 12:23:13 +02:00
Rezart Qelibari
5e78c1ed97 Make git branch change quite in bootstrap.sh 2022-03-01 12:29:14 +01:00
Rezart Qelibari
91b1b6ecd1 Add DOCOPTS_URL to bootstrap.sh 2022-03-01 12:26:53 +01:00
Rezart Qelibari
7619c10845 Add color output & error handling to bootstrap.sh 2022-03-01 11:25:34 +01:00
Rezart Qelibari
9841c026cf Allow branch specification in bootstrap.sh 2022-02-28 07:53:38 +02:00
Rezart Qelibari
2632299ac4 Add color to bootstrap.sh output 2022-02-28 06:59:02 +02:00
Rezart Qelibari
803db08906 Add current dir at end of path instead of front 2022-02-27 10:48:26 +02:00
Rezart Qelibari
b68ed20d47 Compare DEBUG variable as string instead of number 2022-02-18 19:44:31 +01:00
Rezart Qelibari
1129a4bdd4 Add comments to bootstrap.sh steps 2022-02-18 19:44:31 +01:00
Rezart Qelibari
efe91a17b8 Ensure doctops in bootstrap.sh 2022-02-18 19:44:31 +01:00
Rezart Qelibari
2f7f58b2c2 Pass arguments of bootstrap to install.sh 2022-02-18 19:44:31 +01:00
Rezart Qelibari
141f3faeea Use _DIR instead of pwd 2022-02-14 17:22:32 +01:00
Rezart Qelibari
2b87c97692 Require root to run install.sh 2022-02-14 17:22:32 +01:00
Rezart Qelibari
60c1356158 Add vim modeline 2022-01-23 19:12:20 +01:00
Rezart Qelibari
505f808d42 Add return to trap command
Without `return` the SIGINT is ignored (the trap arg gets executed
properly though).
2022-01-23 19:05:22 +01:00
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
a80e1ed88f Run git quietly 2022-01-23 17:09:39 +01:00
Rezart Qelibari
74494ab45d Let the journey begin 2022-01-23 00:15:39 +01:00