chore: shfmt, cleanup

This commit is contained in:
2024-12-28 18:59:09 +02:00
parent eb91a43bbd
commit a8a473a46d
26 changed files with 299 additions and 516 deletions

View File

@@ -2,20 +2,19 @@
# Install python/pip packages.
#
# shellcheck source=shared.sh
source "${DOTFILES}/config/shared.sh"
# Enable verbosity with VERBOSE=1
VERBOSE="${VERBOSE:-0}"
msg "Starting to install pip packages"
msgr run "Starting to install pip packages"
if ! command -v python3 &> /dev/null; then
msg_err "Could not find python3, something really weird is going on."
msgr err "Could not find python3, something really weird is going on."
exit 1
fi
msg_nested "Upgrading pip"
msgr nested "Upgrading pip"
python3 -m pip install --user --upgrade pip
packages=(
@@ -32,11 +31,11 @@ install_packages()
# Skip comments
if [[ ${pkg:0:1} == "#" ]]; then continue; fi
msg_nested "Installing pip package: $pkg"
msgr nested "Installing pip package: $pkg"
python3 -m pip install --user --upgrade "$pkg"
echo ""
done
}
install_packages
msg_yay "Run pip package installations"
msgr run_done "Run pip package installations"