File tree Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change 3
3
4
4
# Install Debian dependencies.
5
5
# TODO: Support Fedora/CentOS/etc. as well.
6
- pkgs=' build-essential checkinstall tk-dev libc6-dev'
7
- install=false
8
- for pkg in $pkgs ; do
9
- status=" $( dpkg-query -W --showformat=' ${db:Status-Status}' " $pkg " 2>&1 ) "
10
- if [ ! $? = 0 ] || [ ! " $status " = installed ]; then
11
- install=true
12
- break
6
+ if command -v apt & > /dev/null
7
+ then
8
+ pkgs=' build-essential libc6-dev'
9
+ install=false
10
+ for pkg in $pkgs ; do
11
+ status=" $( dpkg-query -W --showformat=' ${db:Status-Status}' " $pkg " 2>&1 ) "
12
+ if [ ! $? = 0 ] || [ ! " $status " = installed ]; then
13
+ install=true
14
+ break
15
+ fi
16
+ done
17
+ if " $install " ; then
18
+ sudo apt install $pkgs
13
19
fi
14
- done
15
- if " $install " ; then
16
- sudo apt install $pkgs
17
20
fi
18
21
19
22
set -e
You can’t perform that action at this time.
0 commit comments