Files
dotfiles/script/install.d/04-git.sh
2025-12-23 20:53:55 +02:00

27 lines
556 B
Bash

#!/usr/bin/env bash
# -----------------------------------------------------------------------------
# Description:
# Configure git.
#
if ! command -v git &> /dev/null; then
case "$DOTS_PKG" in
apt)
sudo apt-get install -qq git
;;
pacman)
sudo pacman -S --noconfirm git
;;
brew)
brew install git
;;
*)
log_warn "Skipping git install: no supported package manager found"
return 0
;;
esac
fi
git --version