We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02d6184 commit a4f04a8Copy full SHA for a4f04a8
serverless/release.sh
@@ -26,8 +26,8 @@ cd serverless
26
# echo "After grep: $(grep -o 'Version: \d\+\.\d\+\.\d\+' template.yml)"
27
# echo "After cut: $(grep -o 'Version: \d\+\.\d\+\.\d\+' template.yml | cut -d' ' -f2)"
28
29
-# Need -P to use \d, see: https://stackoverflow.com/questions/6901171/is-d-not-supported-by-greps-basic-expressions
30
-CURRENT_VERSION=$(grep -oP 'Version: \d\+\.\d\+\.\d\+' template.yml | cut -d' ' -f2)
+# \d may be unsupported. See: https://stackoverflow.com/questions/6901171/is-d-not-supported-by-greps-basic-expressions
+CURRENT_VERSION=$(grep -oP 'Version: [0-9]\+\.[0-9]\+\.[0-9]\+' template.yml | cut -d' ' -f2)
31
echo "Current version is ${CURRENT_VERSION}"
32
33
exit 0
0 commit comments