2d6ec73e73
Align find options
2024-07-24 14:31:55 -03:00
ed588bd7d7
Continue script execution when "git checkout" fails
2024-07-21 22:24:44 -03:00
3e76bda8bd
Update setup scripts
2024-07-21 21:59:36 -03:00
a0988e1463
Remove setup-cron
...
I'm not sure about this feature, and since it hasn't been released
yet, I'd prefer not to include it
2024-07-21 21:52:21 -03:00
af917c0649
Replace script
...
Remove scripts that have been replaced by alternatives
2024-07-21 21:41:49 -03:00
c2a3578a55
Replace utils/gitexec with utils/git/run
2024-07-21 21:28:46 -03:00
ec0fa2f93e
Remove "set -x"
2024-07-21 21:04:44 -03:00
3f625d08db
Add gitdiff
portzap / shellcheck (push) Waiting to run
2024-07-02 08:33:21 -03:00
8d8346d51f
Add verify_denyfile, and other small fixes
2024-06-30 07:56:17 -03:00
69a66825ab
Add setup-cron
...
Add a setup script that adds a crontab entry that
runs 'portzap pull' everyday at 12AM localtime
2024-06-30 04:25:23 -03:00
d3c3e3e2f0
Bump diff.renameLimit
...
After a successful clone, we set the configuration
knob 'diff.renameList' to 7000. This change is made
after observing a warning about the value being too
low.
2024-06-30 03:03:16 -03:00
b02c61fd8c
Apply patterns consistently
2024-06-01 05:30:11 -03:00
542e7d20a6
Fix regression
2024-05-23 03:17:04 -03:00
61df681f32
Ignore 'git checkout' failure within portzap-clone
2024-05-23 03:10:41 -03:00
48bd6c6047
Drop empty line
2024-05-23 02:05:46 -03:00
7bf64d5abc
Add libexec/portzap/utils/gitexec
2024-05-23 01:51:21 -03:00
2e4a192656
set +x before printok
2024-05-23 00:19:40 -03:00
ec7335aba5
Fix shellcheck
2024-05-23 00:17:07 -03:00
2de42be1ce
Update portzap-checkout
2024-05-23 00:01:22 -03:00
4d791170a1
Add libexec/portzap/{commands,utils}/
2024-05-22 23:52:41 -03:00
2b9707e89f
Assign ${mode} consistently (without dbl quotes)
2024-05-22 23:35:33 -03:00
59aa25d3c3
Fix running ./bin/portzap within repo
2024-05-22 23:31:35 -03:00
16b8119ee4
Update isportzap-member
2024-05-22 23:22:42 -03:00
c9f86595c1
set +x before print
2024-05-22 22:36:05 -03:00
e17ecd9244
Assign ${mode} before command line args
2024-05-22 22:32:43 -03:00
43168585f0
Add consistent ${libexec} assignment logic
2024-05-22 22:16:03 -03:00
8192f80eb7
Fix shellcheck
2024-05-22 21:55:03 -03:00
6cde6f8ab6
Replace hard-coded references to /usr/local/
2024-05-22 21:51:21 -03:00
f14591d42b
Add libexec/portzap/printok
2024-05-22 21:42:15 -03:00
20e095019a
Prevent root using clone|pull|checkout commands
2024-05-22 20:48:51 -03:00
f125413729
Update error logging
...
Few notable changes:
- Write error messages to stderr
- Keep the error messages brief
- Centralize error logging via libexec/portzap/print-err
2024-05-22 18:28:20 -03:00
b2b17ba5da
Update isportzap-member
2024-05-21 23:27:14 -03:00
b5a80bafdf
Update portzap-pull
2024-05-21 22:38:34 -03:00
eb3ebcc627
Prefix errors with ERR
2024-05-21 22:35:16 -03:00
dbd97d9562
Add 'portzap checkout'
...
A copy of the same sourcezap command ('sourcezap checkout')
2024-05-21 22:25:37 -03:00
397be0b927
Replace portzap-erase with portzap-rm
2024-05-21 21:22:39 -03:00
ee84071329
Switch from #!/bin/sh -e to set -e
...
Switch to set -e.
The shebang variant doesn't apply to subshells.
2024-05-11 14:51:26 -03:00
7c68dd5d1a
Set mode within run_install
2024-04-20 19:31:33 -03:00
7e928ab194
Replace hardcoded reference to ${mode}
2024-04-20 17:05:49 -03:00
76138faa39
Assign ${mode} in libexec/portzap/git-*
2024-04-20 16:47:08 -03:00
0a5f1cc6d6
Fix shellcheck (unused variable, false positives)
2024-04-20 11:10:40 -03:00
aafb3aaec1
Readd verbose output in 'portzap pull'
2024-04-20 10:53:58 -03:00
bd84f7f134
Honor umask
...
This change is a revert of previous commits that worked around
the umask not being honored. This commit runs git with the correct
umask, and avoids any need to run chmod manually. The number of
doas.conf rules has been reduced to 2.
2024-04-20 05:24:14 -03:00
6250b5f995
Call chmod after 'git pull'
...
Similar to clone, the umask is not honored. Fix with recursive
chmod.
2024-04-20 03:18:10 -03:00
105b4f6594
Alter default umask / mode
...
'/home/_portzap/ports/' and '/usr/ports/' have reduced permissions for
members of the '_portzap' group, who now possess read-only permissions
for both directories.
The 'portzap erase' command must be run by root, since members of the
'_portzap' group can't delete contents of either of those directories
anymore.
2024-04-20 02:23:20 -03:00
94493d6040
Allow checkout after clone to fail
...
When $PORTZAP_BRANCH happens to be the default branch,
'git checkout' will exit with an error. Ignore.
2024-04-20 01:55:51 -03:00
1739b7d794
Run chmod after clone
...
The umask appears to be ignored (maybe it is reset after running
'git config core.filemode off' ?). Run chmod to fix.
2024-04-20 01:40:13 -03:00
c1a76f5f88
Fix bug caught by shellcheck
2024-04-20 00:30:24 -03:00
5b363c9eac
Alternate mode syntax
2024-04-20 00:28:10 -03:00
318b893299
Assign ${mode} in portzap-install
2024-04-19 23:40:03 -03:00