File tree Expand file tree Collapse file tree
src/base/.devcontainer/Mk Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,8 +16,12 @@ shellcheck:
1616 fi
1717
1818cfn-lint :
19- cfn-lint -I " cloudformation/**/*.y*ml" 2>&1 | awk ' /Run scan/ { print } /^[EW][0-9]/ { print; getline; print }'
20- cfn-lint -I " SAMtemplates/**/*.y*ml" 2>&1 | awk ' /Run scan/ { print } /^[EW][0-9]/ { print; getline; print }'
19+ @if find cloudformation -type f \( -name " *.yaml" -o -name " *.yml" \) 2> /dev/null | grep -q . ; then \
20+ cfn-lint -I " cloudformation/**/*.y*ml" 2>&1 | awk ' /Run scan/ { print } /^[EW][0-9]/ { print; getline; print; found=1 } END { exit found }' ; \
21+ fi
22+ @if find SAMtemplates -type f \( -name " *.yaml" -o -name " *.yml" \) 2> /dev/null | grep -q . ; then \
23+ cfn-lint -I " SAMtemplates/**/*.y*ml" 2>&1 | awk ' /Run scan/ { print } /^[EW][0-9]/ { print; getline; print; found=1 } END { exit found }' ; \
24+ fi
2125
2226cdk-synth :
2327 echo " Not implemented"
You can’t perform that action at this time.
0 commit comments