Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zafl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open Source Software
zafl
Commits
f0cd18ce
Commit
f0cd18ce
authored
5 years ago
by
Clark Coleman
Browse files
Options
Downloads
Patches
Plain Diff
More precise detection of Ubuntu 18 and 16.
parent
8b737954
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!7
Zafl eightqueens test
Pipeline
#4680
passed
5 years ago
Stage: clean
Stage: build
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/eightqueens/test_8q.sh
+16
-5
16 additions, 5 deletions
test/eightqueens/test_8q.sh
with
16 additions
and
5 deletions
test/eightqueens/test_8q.sh
+
16
−
5
View file @
f0cd18ce
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment