Refactored helpers to reduce duplication and improve naming.
- Renamed chroot_install/chroot_enable to chroot_pacman_install/chroot_systemd_enable. - Made chroot_systemd_enable auto-print status, removing need for wrapper functions. - Used generic prompt helpers instead of duplicating logic in specialized functions. - Inlined and removed single-use wrapper functions throughout.
This commit is contained in:
@@ -153,14 +153,14 @@ install_profile() {
|
||||
packages=$(get_profile_packages "$profile")
|
||||
if [ -n "$packages" ]; then
|
||||
# shellcheck disable=SC2086
|
||||
chroot_install $packages
|
||||
chroot_pacman_install $packages
|
||||
fi
|
||||
|
||||
# Enable profile services
|
||||
services=$(get_profile_services "$profile")
|
||||
if [ -n "$services" ]; then
|
||||
# shellcheck disable=SC2086
|
||||
chroot_enable $services
|
||||
chroot_systemd_enable $services
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user