From: Dimitri Savineau Date: Thu, 4 Nov 2021 19:13:30 +0000 (-0400) Subject: ceph-container-lint: filter out file removed X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3315845e2ae2320f296fc67ddf218d016dfdc9d6;p=ceph-build.git ceph-container-lint: filter out file removed We don't want to run shellcheck on shell script removed by a pull request. Signed-off-by: Dimitri Savineau --- diff --git a/ceph-container-lint/build/build b/ceph-container-lint/build/build index 8181a0a1..e8d0fdaa 100755 --- a/ceph-container-lint/build/build +++ b/ceph-container-lint/build/build @@ -12,8 +12,7 @@ function generate_filelist(){ find . -name '*.sh' | grep -vE "$IGNORE_THESE_FILES" else curl -XGET "https://api.github.com/repos/ceph/ceph-container/pulls/$pull_request_id/files" | - jq '.[].filename' | # just the files please - tr -d '"' | # remove the quoting from JSON + jq -r '.[] | select(.status != "removed") | .filename' # just the files please (not removed) grep ".sh$" | # just the bash grep -vE "$IGNORE_THESE_FILES" fi