From 3db1b4ba9bf043648fc36e1d15638243f98ac70b Mon Sep 17 00:00:00 2001 From: AnthonyAxenov Date: Sat, 8 Jan 2022 14:17:50 +0800 Subject: [PATCH] =?UTF-8?q?=D0=9A=D0=BE=D1=80=D1=80=D0=B5=D0=BA=D1=82?= =?UTF-8?q?=D0=B8=D1=80=D0=BE=D0=B2=D0=BA=D0=B0=20git?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install/010-git.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/install/010-git.sh b/install/010-git.sh index d9cf19a..1740d30 100755 --- a/install/010-git.sh +++ b/install/010-git.sh @@ -1,12 +1,14 @@ #!/bin/bash -. "../src/01-common.sh" || exit 5 -title "Installing git..." +echo +echo "===============================================" +echo "Installing git..." +echo "===============================================" +echo -if installed 'git'; then +if installed git; then [ ! -d "/usr/src/git" ] && sudo git clone https://github.com/git/git.git --depth=1 /usr/src/git sudo chown -R anthony: /usr/src/git cd /usr/src/git/ - # sudo git pull sudo make prefix=/usr/local all sudo make prefix=/usr/local install else @@ -21,4 +23,4 @@ else sudo git clone https://github.com/git/git.git --depth=1 /usr/src/git sudo chown -R anthony: /usr/src/git fi -success "$(git --version)" +git --version