File tree Expand file tree Collapse file tree 1 file changed +7
-16
lines changed Expand file tree Collapse file tree 1 file changed +7
-16
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- which git
4
-
5
- if [ $? -eq " 0" ]; then
6
- echo " ` git --version` - is already installed on ` hostname` "
7
- exit
8
- else
9
- echo " No git installation found -- proceeding with git installation..."
10
- sudo apt-get install -y python-software-properties
11
- sudo apt-get install -y software-properties-common
12
- sudo apt-get remove -y git git-core
13
- sudo apt-add-repository --yes ppa:git-core/ppa
14
- sudo apt-get update
15
- sudo apt-get install -y git
16
- echo " ` git --version` installed Successfully"
17
- fi
18
- exit
3
+ sudo apt-get install -y python-software-properties
4
+ sudo apt-get install -y software-properties-common
5
+ sudo apt-get remove -y git git-core
6
+ sudo apt-add-repository --yes ppa:git-core/ppa
7
+ sudo apt-get update
8
+ sudo apt-get install -y git
9
+ echo " ` git --version` installed Successfully"
You can’t perform that action at this time.
0 commit comments