install.fairie/home/.chezmoiscripts/universal/run_after_10-install.sh.tmpl
2024-05-28 03:50:11 +00:00

24 lines
794 B
Bash

#!/usr/bin/env bash
# @file Software Installation
# @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.
{{ includeTemplate "universal/profile" }}
{{ includeTemplate "universal/logg" }}
if command -v installx > /dev/null; then
if command -v zx > /dev/null; then
if command -v unbuffer > /dev/null; then
gum log -sl info 'Running unbuffer installx'
unbuffer installx --all
else
gum log -sl info 'Running installx'
installx --all
fi
else
gum log -sl error 'zx is not available'
fi
else
gum log -sl error 'installx is not in the PATH. It should be located in ~/.local/bin.'
fi