3a62a02c3d
refactor: reduce code duplication from 1.97% to 0.76%
...
- Add common.sh library functions: require_imagemagick, install_missing_pacman_packages, handle_arg_help_or_unknown
- Create android.sh shared library for Android utilities
- Create hosts-guard-common.sh for pacman hooks shared functions
- Update multiple scripts to source common.sh and use shared helpers
- Add print_shutdown_schedule helper in setup_midnight_shutdown.sh
- Remove duplicate log(), usage(), install_packages patterns across scripts
- Format all shell scripts with shfmt (2-space indent)
2025-12-11 18:32:15 +01:00
2eacdc07dc
Add greylist support for challenge-required packages
...
- Create pacman_greylist.txt with virtualbox as initial entry
- Add is_greylisted_package_name() for substring matching
- Add remove_installed_greylisted_packages() to auto-uninstall
- Replace hardcoded VirtualBox check with generic greylist check
- Update installer to copy greylist file
2025-12-04 21:33:29 +01:00
77d1cc581e
fix: resolve all shellcheck errors
...
- Replace 'A && B || C' patterns with proper if-then-else statements (SC2015)
- Add check_for_virtualbox function to invoke prompt_for_virtualbox_challenge (SC2317)
- Fix install_launcher function to escape variable in heredoc (SC2119/SC2120)
- Apply shfmt formatting to ensure consistent style
Fixes 7 SC2015 violations, 1 SC2317 violation, and 1 SC2119/SC2120 pair.
All 79 shell files now pass shellcheck without errors.
2025-11-16 21:17:08 +01:00
42db2c1d44
fix: shellcheck issues
2025-11-01 15:36:22 +01:00
d854019534
feat: removed yt from pacman blocked list
2025-10-31 18:00:30 +01:00
b2ef334526
Revert "feat: removed pre unlock hosts script"
...
This reverts commit 14d5802544 .
2025-10-31 17:50:11 +01:00
e88cf53483
feat: add 3 python packages to whitelist
2025-10-31 17:37:26 +01:00
63a4f8b3ae
chore: organize scripts folder
2025-10-31 17:31:16 +01:00