UNCLASSIFIED - NO CUI
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bigbang
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Big Bang
bigbang
Commits
100eb708
Commit
100eb708
authored
4 years ago
by
Zachariah Dzielinski
Browse files
Options
Downloads
Patches
Plain Diff
Changed ggrep to grep
parent
2ee9de17
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!158
Linting for changelog and version
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/lint_version.sh
+4
-4
4 additions, 4 deletions
scripts/lint_version.sh
with
4 additions
and
4 deletions
scripts/lint_version.sh
+
4
−
4
View file @
100eb708
#!/usr/bin/env bash
# obtain the default chart version
chart_default_version
=
$(
git show origin/
${
CI_DEFAULT_BRANCH
}
:
${
CHART_FILE
}
|
g
grep
-oP
'version: \K(.*)'
)
chart_default_version
=
$(
git show origin/
${
CI_DEFAULT_BRANCH
}
:
${
CHART_FILE
}
|
grep
-oP
'version: \K(.*)'
)
# check for command error
if
[
$?
-ne
0
]
;
then
...
...
@@ -10,7 +10,7 @@ if [ $? -ne 0 ]; then
fi
# obtain the local chart version
chart_local_version
=
$(
cat
${
CHART_FILE
}
|
g
grep
-oP
'version: \K(.*)'
)
chart_local_version
=
$(
cat
${
CHART_FILE
}
|
grep
-oP
'version: \K(.*)'
)
# check for command error
if
[
$?
-ne
0
]
;
then
...
...
@@ -19,7 +19,7 @@ if [ $? -ne 0 ]; then
fi
# obtain the default base git repository tag
basegit_default_tag
=
$(
git show origin/
${
CI_DEFAULT_BRANCH
}
:
${
BASEGIT_FILE
}
|
g
grep
-oP
'tag: \K(.*)'
)
basegit_default_tag
=
$(
git show origin/
${
CI_DEFAULT_BRANCH
}
:
${
BASEGIT_FILE
}
|
grep
-oP
'tag: \K(.*)'
)
# check for command error
if
[
$?
-ne
0
]
;
then
...
...
@@ -28,7 +28,7 @@ if [ $? -ne 0 ]; then
fi
# obtain the local base git repository tag
basegit_local_tag
=
$(
cat
${
BASEGIT_FILE
}
|
g
grep
-oP
'tag: \K(.*)'
)
basegit_local_tag
=
$(
cat
${
BASEGIT_FILE
}
|
grep
-oP
'tag: \K(.*)'
)
# check for command error
if
[
$?
-ne
0
]
;
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