feat: brew and apt packages
This commit is contained in:
14
script/install.d/04-git.sh
Normal file
14
script/install.d/04-git.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user