Skip to main content

View / Edit on GitHub: home/.chezmoiscripts/universal/run_after_10-install.sh.tmpl

Software Installation

Installs the list of software that correlates to the software group that was chosen.

Overview

This script initializes the installation process that handles the bulk of the software package installations.

Source Code

#!/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