exclude Ubuntu16

This commit is contained in:
Aleksandr Chebotov
2020-09-24 20:49:22 +03:00
parent 207f49ed93
commit 72bd7db479

View File

@@ -4,6 +4,11 @@
## Desc: Installs GNU C++
################################################################################
set -e
# Source the helpers for use with the script
source $HELPER_SCRIPTS/os.sh
function InstallGcc {
version=$1
@@ -26,10 +31,12 @@ versions=(
"g++-7"
"g++-8"
"g++-9"
"g++-10"
)
for version in ${versions[*]}
do
if ! isUbuntu16; then
versions+=("g++-10")
fi
for version in ${versions[*]}; do
InstallGcc $version
done