Skip to content

Commit

Permalink
add support to use with Ubuntu (#59)
Browse files Browse the repository at this point in the history
Co-authored-by: Luiz Costa <me@luizgustavo.pro.br>
  • Loading branch information
2 people authored and bouda1 committed Oct 7, 2021
1 parent 59aa1e5 commit d4e9b5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions centreon-clib/cmake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ elif [ -r /etc/issue ] ; then
v=$(cmake --version)
if [[ $v =~ "version 3" ]] ; then
cmake='cmake'
elif [ $maj = "Debian" ] ; then
elif [ $maj = "Debian" ] || [ $maj = "Ubuntu" ]; then
if $dpkg -l cmake ; then
echo "Bad version of cmake..."
exit 1
Expand Down Expand Up @@ -145,7 +145,7 @@ elif [ -r /etc/issue ] ; then
echo "Bad version of cmake..."
exit 1
fi
if [ $maj = "Debian" ] ; then
if [ $maj = "Debian" ] || [ $maj = "Ubuntu" ]; then
pkgs=(
gcc
g++
Expand Down

0 comments on commit d4e9b5e

Please sign in to comment.