Files
dotfiles/script/install.d/04-git.sh
2024-03-07 01:51:14 +00:00

17 lines
353 B
Bash

#!/usr/bin/env bash
# -----------------------------------------------------------------------------
# Description:
# Configure git.
#
if ! command -v git &> /dev/null; then
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
sudo apt-get install -qq git
elif [[ "$OSTYPE" == "darwin"* ]]; then
brew install git
fi
fi
git --version