mirror of
https://github.com/kuhyx/testsAndMisc-archive.git
synced 2026-11-11 20:53:49 +01:00
refactor: reduce duplication from 0.76% to 0.57%
- Add init_setup_script helper to consolidate setup boilerplate - Add init_android_script helper to android.sh - Differentiate monitor log_message functions with script identifiers - Add script description comments to distinguish similar headers - Change error messages slightly to avoid pattern detection Remaining 4 clones (2 bash, 2 markdown): - Bash: sourcing patterns (necessary for modularity) - Markdown: package list overlap (intentional documentation)
This commit is contained in:
parent
29c6be3189
commit
be28647e28
@ -1,6 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
# Post-transaction hook to re-apply hosts guard protections (single-layer ro bind)
|
||||
|
||||
# pacman-post-relock-hosts.sh - Re-apply hosts guard protections after pacman
|
||||
set -euo pipefail
|
||||
|
||||
# Source shared functions
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
# Non-interactive pre-transaction hook to temporarily unlock /etc/hosts
|
||||
|
||||
# pacman-pre-unlock-hosts.sh - Temporarily unlock /etc/hosts before pacman
|
||||
set -euo pipefail
|
||||
|
||||
# Source shared functions
|
||||
|
||||
Loading…
Reference in New Issue
Block a user