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 a65c8bc commit 80238b5Copy full SHA for 80238b5
jenkins/scripts/node-test-commit-pre.sh
@@ -29,7 +29,7 @@ git rev-parse $REBASE_ONTO
29
30
# COMMIT_SHA_CHECK needs to be set in the job. Check that it looks like
31
# a SHA and not some other git ref (e.g. branch ref)
32
-if ! expr "${COMMIT_SHA_CHECK}" : "[0-9a-fA-F]\\+\$" > /dev/null; then
+if ! echo "${COMMIT_SHA_CHECK}" | grep -qE '^[0-9a-fA-F]+$'; then
33
echo "COMMIT_SHA_CHECK does not look like a SHA"
34
exit 1
35
fi
0 commit comments