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 43f8970 commit 5b61a13Copy full SHA for 5b61a13
hack/investigation-test-coverage.sh
@@ -11,7 +11,7 @@ BASE_SHA=$(git ls-remote "https://github.com/openshift/configuration-anomaly-det
11
PR_SHA=$(git rev-parse HEAD)
12
13
# Obtaining instances of files added in the PR
14
-diff_files=$(git diff --name-status "$BASE_SHA" "$PR_SHA" | grep '^A' | awk '{print $2}')
+diff_files=$(git diff --name-status "$BASE_SHA" "$PR_SHA" | (grep '^A' || true;) | awk '{print $2}')
15
16
# Filter to relevant directory (investigations folder)
17
investigations=$(echo "$diff_files" | grep '^pkg/investigations/' || true)
0 commit comments