File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -27,18 +27,6 @@ cd serverless
27
27
# echo "After cut: $(grep -o 'Version: \d\+\.\d\+\.\d\+' template.yml | cut -d' ' -f2)"
28
28
29
29
# \d may be unsupported. See: https://stackoverflow.com/questions/6901171/is-d-not-supported-by-greps-basic-expressions
30
- echo ' Grep for "Version"'
31
- grep -o ' Version' template.yml
32
- echo ' Grep for "Version: "'
33
- grep -o ' Version: ' template.yml
34
- echo ' Grep for "Version: [0-9]"'
35
- grep -o ' Version: [0-9]' template.yml
36
- echo ' Grep for "Version: [0-9]\+"'
37
- grep -o ' Version: [0-9]\+' template.yml
38
- echo ' Grep for "Version: [0-9]\+\."'
39
- grep -o ' Version: [0-9]\+\.' template.yml
40
- echo ' Grep for "Version: [0-9]\+\.[0-9]\+\.[0-9]\+"'
41
- grep -o ' Version: [0-9]\+\.[0-9]\+\.[0-9]\+' template.yml
42
30
CURRENT_VERSION=$( grep -o ' Version: [0-9]\+\.[0-9]\+\.[0-9]\+' template.yml | cut -d' ' -f2)
43
31
echo " Current version is ${CURRENT_VERSION} "
44
32
You can’t perform that action at this time.
0 commit comments