Skip to content
Snippets Groups Projects
Commit 2f54e6a0 authored by zp's avatar zp
Browse files

Fix for CentOS

parent 5541c264
No related branches found
No related tags found
No related merge requests found
PKGS="libtool glib2.0-dev texinfo libtool-bin"
which apt-get >/dev/null 2>/dev/null
if [ $? -eq 0 ]; then
PKGS="libtool glib2.0-dev texinfo libtool-bin"
else
PKGS="libtool glib2.0-dev texinfo"
fi
for i in $PKGS
do
sudo apt-get install $i -y --force-yes
which apt-get >/dev/null 2>/dev/null
if [ $? -eq 0 ]; then
sudo apt-get install $i -y --force-yes
else
sudo yum install $i -y --skip-broken
fi
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment