Skip to content

Commit

Permalink
[update]add find git
Browse files Browse the repository at this point in the history
  • Loading branch information
kenkenpa198 committed Mar 7, 2024
1 parent cec527b commit 184cd93
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions setup/ubuntu/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ function export_xdg {

# git clone dotfiles
function clone_dotfiles {

# https://qiita.com/8ayac/items/b6b6f0a385d08659316b
if ! (type "git" > /dev/null 2>&1); then
sudo apt-get update && \
sudo apt-get install -y git
fi

DOTFILES_HOME=${HOME}/dotfiles

if [ ! -d "${DOTFILES_HOME}" ]; then
Expand Down

0 comments on commit 184cd93

Please sign in to comment.