Commit graph

74 commits

Author SHA1 Message Date
f3f84f181a Create doas.conf if neccessary
Some checks are pending
sourcezap / shellcheck (push) Waiting to run
2024-09-15 21:01:03 -03:00
c5e777ac21 Update sourcezap-checkout
Some checks are pending
sourcezap / shellcheck (push) Waiting to run
2024-09-14 04:50:18 -03:00
8f79d6de57 Fix shellcheck
Some checks are pending
sourcezap / shellcheck (push) Waiting to run
2024-09-14 04:31:18 -03:00
b20e2154dc Log when sourcezap rm completes successfully
Some checks are pending
sourcezap / shellcheck (push) Waiting to run
2024-09-14 04:24:49 -03:00
a41f37965e Format log messages with pattern 'sourcezap: <message>'
Some checks are pending
sourcezap / shellcheck (push) Waiting to run
2024-09-14 02:27:45 -03:00
56089665a7 Replace chmod with -M option
Some checks are pending
sourcezap / shellcheck (push) Waiting to run
2024-09-13 05:08:29 -03:00
2c57630399 Disable SC2002
Some checks are pending
sourcezap / shellcheck (push) Waiting to run
2024-09-10 00:38:10 -03:00
2ec8592058 Fix typo
Some checks are pending
sourcezap / shellcheck (push) Waiting to run
2024-09-10 00:28:11 -03:00
17d4e0f637 Undo over-engineering (or try to anyway)
Some checks are pending
sourcezap / shellcheck (push) Waiting to run
2024-09-10 00:26:04 -03:00
b470001647 s|rev|commit|g, s|revfile|commitfile|g 2024-08-20 02:20:11 -03:00
c6266e01df s|gitdir|repodir|g, s|giturl|repourl|g 2024-08-20 01:55:47 -03:00
74c34a9491 Add libexec/sourcezap/utils/get-umask
Some checks are pending
sourcezap / shellcheck (push) Waiting to run
2024-08-20 00:24:03 -03:00
1b1bab8a1c Fix typo
Some checks are pending
sourcezap / shellcheck (push) Waiting to run
2024-08-18 22:32:06 -03:00
0x1eef
3c994da3cb Refactor 'sourcezap-install' command (#7)
Co-authored-by: 0x1eef <0x1eef@protonmail.com>
Reviewed-on: http://git.bastion.home.network/0x1eef/sourcezap/pulls/7
2024-08-18 22:31:31 -03:00
bc0553aabd Denote function locals with 'local' 2024-08-18 20:29:50 -03:00
d2f900f440 Update sourcezap-{setup,teardown} 2024-08-18 20:00:37 -03:00
2c13017d7b Update sourcezap-checkout 2024-08-18 19:28:59 -03:00
245fe9957a Fix shellcheck errors
Some checks are pending
sourcezap / shellcheck (push) Waiting to run
2024-08-17 18:56:38 -03:00
87f8e18ade Silence grep with -q 2024-08-17 18:18:39 -03:00
c68eebf4a5 Add setup-doas improvements 2024-08-17 18:11:06 -03:00
59b3f3ed30 Remove '_sourcezap' group in 'sourcezap teardown' 2024-08-16 20:03:19 -03:00
0x1eef
81b163dd25 Add 'sourcezap [setup|teardown]' (#5)
Co-authored-by: 0x1eef <0x1eef@protonmail.com>
Reviewed-on: http://git.bastion.home.network/0x1eef/sourcezap/pulls/5
2024-08-16 19:45:22 -03:00
b3720019b2 Call issourcezap-member before ${gitdir} check
Some checks are pending
sourcezap / shellcheck (push) Waiting to run
2024-08-09 22:51:35 -03:00
ef1295fb35 Silence issourcezap-member noise in sourcezap-sh 2024-08-09 22:48:27 -03:00
1aa19782c1 Add 'sourcezap sh'
Some checks failed
sourcezap / shellcheck (push) Has been cancelled
2024-08-07 03:45:25 -03:00
104f62ae47 Suppress shellcheck error in setup-{doas,user}
Some checks failed
sourcezap / shellcheck (push) Has been cancelled
2024-07-31 12:29:33 -03:00
16ca9b6c68 Silence "git checkout" output
Some checks failed
sourcezap / shellcheck (push) Has been cancelled
2024-07-27 06:09:53 -03:00
b8bef1f953 Fix shellcheck errors (includes a bug in setup-user) 2024-07-26 22:36:35 -03:00
c6e83bea5e Inline function in setup-doas 2024-07-26 15:43:56 -03:00
f8bcf60ae1 Add setup/setup-user
Some checks are pending
sourcezap / shellcheck (push) Waiting to run
2024-07-26 11:32:27 -03:00
36cb7591ee Add libexec/sourcezap/setup/ 2024-07-25 07:22:30 -03:00
c97b48bc0d Continue script execution when "git checkout" fails 2024-07-24 14:34:23 -03:00
3736e6f15b Update print.sh 2024-07-19 17:46:03 -03:00
59c799c047 Add libexec/sourcezap/functions/ 2024-07-19 17:00:03 -03:00
dfb5fcc92a Remove unused source of functions.sh 2024-07-19 16:55:43 -03:00
0174a27bb2 Remove another case of 'set +x' 2024-07-19 15:05:30 -03:00
d344673f66 Split checkout across multiple lines 2024-07-19 14:22:37 -03:00
fb4629fda5 Replace 'git' function with '${git}' variable
This change adds clarity by removing the 'git'
function, which could be easily confused with
the 'git' exectuable
2024-07-19 14:19:09 -03:00
cd1e504643 Fix a few bugs
Some checks are pending
sourcezap / shellcheck (push) Waiting to run
2024-07-19 03:44:16 -03:00
f65748c533 Inline utils/printerr, utils/printok 2024-07-19 03:32:46 -03:00
19c465d6be Add functions.sh
Replace repetitive code
2024-07-19 03:32:46 -03:00
d5770bc731 Update sourcezap-{clone,pull}
Some checks are pending
sourcezap / shellcheck (push) Waiting to run
Reduce the visual noise generated by set -x
2024-07-19 03:08:12 -03:00
d33cd6628f Add utils/git directory
Group git-related utilities under one directory.
The utils/git/run script runs git as the '_sourcezap'
user, and it is how we talk to git.
2024-07-19 03:08:02 -03:00
d4a18461ca Fix utils/git
Some checks are pending
sourcezap / shellcheck (push) Waiting to run
In this context, we want to use ${*} rather than ${@}
2024-07-19 01:59:13 -03:00
ebdcf33035 Fix utils/git
Some checks are pending
sourcezap / shellcheck (push) Waiting to run
2024-07-08 11:05:59 -03:00
a610b976ba Add source
Some checks are pending
sourcezap / shellcheck (push) Waiting to run
2024-07-08 11:04:06 -03:00
aaecf00394 Replace sourcezap/utils/gitexec with sourcezap/utils/git
Some checks are pending
sourcezap / shellcheck (push) Waiting to run
2024-07-02 09:14:33 -03:00
1c344e0c60 Add gitdiff 2024-07-02 08:39:59 -03:00
d54f37d3b6 Drop set -x for chown -Rv 2024-07-02 06:06:40 -03:00
6092eff441 set +x before we call perform_(update|install) 2024-06-22 19:40:13 -03:00