File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,18 @@ function is_ubuntu1604()
31
31
fi
32
32
}
33
33
34
+
35
+ # 判断是否是Debian版本
36
+ function is_debian()
37
+ {
38
+ version=$( lsb_release -is)
39
+ if [ " ${version} " == " Debian" ]; then
40
+ echo 1
41
+ else
42
+ echo 0
43
+ fi
44
+ }
45
+
34
46
# 在ubuntu上源代码安装vim
35
47
function compile_vim_on_ubuntu()
36
48
{
@@ -114,13 +126,18 @@ function install_prepare_software_on_centos()
114
126
# 安装ubuntu发行版必要软件
115
127
function install_prepare_software_on_ubuntu()
116
128
{
117
- sudo apt-get install -y ctags build-essential cmake python-dev python3-dev fontconfig curl libfile-next-perl ack-grep
129
+ sudo apt-get update
130
+ sudo apt-get install -y ctags build-essential cmake python python-dev python3-dev fontconfig curl libfile-next-perl ack-grep
118
131
ubuntu_1604=` is_ubuntu1604`
132
+ debian=` is_debian`
119
133
echo ${ubuntu_1604}
120
134
121
135
if [ ${ubuntu_1604} == 1 ]; then
122
136
echo " Ubuntu 16.04 LTS"
123
137
compile_vim_on_ubuntu
138
+ elif [ ${debian} == 1 ]; then
139
+ echo " Debian"
140
+ compile_vim_on_ubuntu
124
141
else
125
142
echo " Not ubuntu 16.04 LTS"
126
143
sudo apt-get install -y vim
You can’t perform that action at this time.
0 commit comments