Commit Graph

10 Commits

Author SHA1 Message Date
29c6be3189 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
355a19425d Fix check_and_enable_services.sh and hosts guard
- Fix startup_monitor check to verify timer instead of service
- Fix pacman hooks filename check (10-unlock-etc-hosts.hook, 90-relock-etc-hosts.hook)
- Add re-verification after fixes to update status correctly
- Set immutable attribute before bind mount in pacman-post-relock-hosts.sh
- Add new check_and_enable_services.sh script for verifying all digital wellbeing services
2025-12-04 15:14:50 +01:00
7eb3338de6 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
5a34d9aae4 feat: add install unreal mcp script 2025-11-06 20:24:19 +01:00
fef44f0015 fix: shellcheck issues 2025-11-01 15:36:22 +01:00
dcd4251992 Revert "feat: removed pre unlock hosts script"
This reverts commit ec8d91fe69.
2025-10-31 17:50:11 +01:00
ec8d91fe69 feat: removed pre unlock hosts script 2025-10-31 17:16:48 +01:00
88fd8f4861 fix: pacman hooks for hosts 2025-10-13 10:21:35 +02:00
5a3708ca55 feat: more hosts friction 2025-10-01 20:56:04 +02:00
aed668a21f feat: more etc hosts friction 2025-10-01 20:50:56 +02:00