Skip to content
Snippets Groups Projects
Commit f0cd18ce authored by Clark Coleman's avatar Clark Coleman
Browse files

More precise detection of Ubuntu 18 and 16.

parent 8b737954
No related branches found
No related tags found
1 merge request!7Zafl eightqueens test
Pipeline #4680 passed
...@@ -24,13 +24,24 @@ else ...@@ -24,13 +24,24 @@ else
CENTOS_FOUND=0 CENTOS_FOUND=0
fi fi
echo "$unamestr" | grep "ubuntu16" - > /dev/null UBUNTU16_FOUND=0
UBUNTU18_FOUND=0
echo "$unamestr" | grep "ubuntu" - > /dev/null
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
UBUNTU16_FOUND=1 echo "$unamestr" | grep "16.0" - > /dev/null
echo "Found Ubunut16" if [ $? -eq 0 ]; then
UBUNTU16_FOUND=1
echo "Found Ubuntu16"
fi
echo "$unamestr" | grep "18.0" - > /dev/null
if [ $? -eq 0 ]; then
UBUNTU18_FOUND=1
echo "Found Ubuntu18"
else
echo "Ubuntu found, but neither Ubuntu16 nor Ubuntu18 found."
fi
else else
echo "Did not find Ubuntu16" echo "Did not find Ubuntu"
UBUNTU16_FOUND=0
fi fi
if [ $CENTOS_FOUND ]; then if [ $CENTOS_FOUND ]; then
......
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