From 3315845e2ae2320f296fc67ddf218d016dfdc9d6 Mon Sep 17 00:00:00 2001 From: Dimitri Savineau Date: Thu, 4 Nov 2021 15:13:30 -0400 Subject: [PATCH] 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 --- ceph-container-lint/build/build | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ceph-container-lint/build/build b/ceph-container-lint/build/build index 8181a0a12..e8d0fdaad 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 -- 2.47.3