Skip to content

Commit 0cad8bd

Browse files
committed
Switch sed to grep^
Signed-off-by: AliceProxy <aliceproxy@protonmail.com>
1 parent f7271ed commit 0cad8bd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ commands:
257257
- run:
258258
name: "Diff changes"
259259
command: |
260-
thisversion=$(grep version: charts/edge-stack/Chart.yaml | awk ' { print $2 }' | sed -n 1p)
260+
thisversion=$(grep ^version: charts/edge-stack/Chart.yaml | awk ' { print $2 }')
261261
262262
if [[ "<< pipeline.git.tag >>" != "chart-v${thisversion}" ]]; then
263263
echo "Chart version ${thisversion} doesn't match tag << pipeline.git.tag >>; aborting"

.circleci/config.yml.d/amb_util.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ commands:
160160
- run:
161161
name: "Diff changes"
162162
command: |
163-
thisversion=$(grep version: charts/edge-stack/Chart.yaml | awk ' { print $2 }' | sed -n 1p)
163+
thisversion=$(grep ^version: charts/edge-stack/Chart.yaml | awk ' { print $2 }')
164164
165165
if [[ "<< pipeline.git.tag >>" != "chart-v${thisversion}" ]]; then
166166
echo "Chart version ${thisversion} doesn't match tag << pipeline.git.tag >>; aborting"

charts/scripts/common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ get_chart_version () {
139139
if [[ ! -f "${1}/Chart.yaml" ]] ; then
140140
abort "Chart.yaml not found in ${1}"
141141
fi
142-
grep '^version:' ${1}/Chart.yaml | awk ' { print $2 }' | sed -n 1p
142+
grep '^version:' ${1}/Chart.yaml | awk ' { print $2 }'
143143
}
144144

145145
create_chart_release() {

0 commit comments

Comments
 (0)