2022-11-27 10:42:29 -08:00
|
|
|
#!/usr/bin/env bash
|
2023-04-12 17:36:02 -07:00
|
|
|
# @file Software Installation
|
2023-04-11 20:26:25 -07: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 09:46:53 -08:00
|
|
|
|
2022-12-25 00:30:40 -08:00
|
|
|
{{ includeTemplate "universal/profile" }}
|
|
|
|
{{ includeTemplate "universal/logg" }}
|
2023-11-04 20:56:58 -07:00
|
|
|
|
2024-05-27 04:15:03 -07:00
|
|
|
if command -v installx > /dev/null; then
|
2022-11-27 17:34:41 -08:00
|
|
|
if command -v zx > /dev/null; then
|
2023-11-06 21:42:06 -08:00
|
|
|
if command -v unbuffer > /dev/null; then
|
2024-05-27 20:50:11 -07:00
|
|
|
gum log -sl info 'Running unbuffer installx'
|
2024-05-27 04:15:03 -07:00
|
|
|
unbuffer installx --all
|
2023-11-06 21:42:06 -08:00
|
|
|
else
|
2024-05-27 20:50:11 -07:00
|
|
|
gum log -sl info 'Running installx'
|
2024-05-27 04:15:03 -07:00
|
|
|
installx --all
|
2023-11-06 21:42:06 -08:00
|
|
|
fi
|
2022-11-27 17:34:41 -08:00
|
|
|
else
|
2024-05-27 20:50:11 -07:00
|
|
|
gum log -sl error 'zx is not available'
|
2022-11-27 17:34:41 -08:00
|
|
|
fi
|
2022-11-27 10:42:29 -08:00
|
|
|
else
|
2024-05-27 20:50:11 -07:00
|
|
|
gum log -sl error 'installx is not in the PATH. It should be located in ~/.local/bin.'
|
2022-11-27 10:42:29 -08:00
|
|
|
fi
|