2022-11-27 18:42:29 +00:00
|
|
|
#!/usr/bin/env bash
|
2023-04-13 00:36:02 +00:00
|
|
|
# @file Software Installation
|
2023-04-12 03:26:25 +00:00
|
|
|
# @brief Installs the list of software that correlates to the software group that was chosen.
|
|
|
|
# @description
|
|
|
|
# This script initializes the installation process that handles the bulk of the software package installations.
|
Update dotfiles/.config/age/run_once_before_decrypt-private-key.sh.tmpl, dotfiles/.local/share/chezmoi/home/.chezmoi.yaml.tmpl, dotfiles/.local/share/chezmoi/home/.chezmoiexternal.toml, dotfiles/.local/share/chezmoi/home/.chezmoitemplates/darwin/Brewfile, dotfiles/.local/share/chezmoi/home/.chezmoiscripts/fedora/run_onchange_before_10-install-fedora-dependencies.tmpl, dotfiles/.local/share/chezmoi/home/.chezmoiscripts/freebsd/run_onchange_before_11-install-freebsd-packages.tmpl, dotfiles/.local/share/chezmoi/home/.chezmoiscripts/opensuse/run_onchange_before_11-install-opensuse-software.tmpl, dotfiles/.local/share/chezmoi/home/.chezmoiscripts/ubuntu/run_onchange_before_10_install-ubuntu-dependencies.tmpl, dotfiles/.local/share/chezmoi/home/.chezmoiscripts/centos/run_onchange_before_10-install-centos-dependencies.tmpl, dotfiles/.local/share/chezmoi/home/.chezmoiscripts/archlinux/run_onchange_before_10_install-archlinux-dependencies.tmpl, dotfiles/.local/share/chezmoi/home/.chezmoiscripts/debian/run_onchange_before_10-install-debian-dependencies.tmpl, dotfiles/.local/share/chezmoi/home/.chezmoiscripts/_universal/run_onchange_before_90-install-packages.tmpl, dotfiles/.local/share/chezmoi/home/.chezmoiscripts/_universal/run_onchange_before_91-configure-gpg.tmpl, dotfiles/.local/share/chezmoi/home/.chezmoidata.yml
2022-11-27 17:46:53 +00:00
|
|
|
|
2022-12-25 08:30:40 +00:00
|
|
|
{{ includeTemplate "universal/profile" }}
|
|
|
|
{{ includeTemplate "universal/logg" }}
|
2023-11-05 03:56:58 +00:00
|
|
|
|
2024-05-27 11:15:03 +00:00
|
|
|
if command -v installx > /dev/null; then
|
2022-11-28 01:34:41 +00:00
|
|
|
if command -v zx > /dev/null; then
|
2023-11-07 05:42:06 +00:00
|
|
|
if command -v unbuffer > /dev/null; then
|
2024-05-28 03:50:11 +00:00
|
|
|
gum log -sl info 'Running unbuffer installx'
|
2024-05-27 11:15:03 +00:00
|
|
|
unbuffer installx --all
|
2023-11-07 05:42:06 +00:00
|
|
|
else
|
2024-05-28 03:50:11 +00:00
|
|
|
gum log -sl info 'Running installx'
|
2024-05-27 11:15:03 +00:00
|
|
|
installx --all
|
2023-11-07 05:42:06 +00:00
|
|
|
fi
|
2022-11-28 01:34:41 +00:00
|
|
|
else
|
2024-05-28 03:50:11 +00:00
|
|
|
gum log -sl error 'zx is not available'
|
2022-11-28 01:34:41 +00:00
|
|
|
fi
|
2022-11-27 18:42:29 +00:00
|
|
|
else
|
2024-05-28 03:50:11 +00:00
|
|
|
gum log -sl error 'installx is not in the PATH. It should be located in ~/.local/bin.'
|
2022-11-27 18:42:29 +00:00
|
|
|
fi
|