Skip to content

Commit

Permalink
fix wrong path when displaying yaml content with lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
glehmann committed Dec 11, 2023
1 parent e915fb3 commit 93eaecb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helm/lint
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ yamllint_count=`wc -l /tmp/yamllint.out | cut -d ' ' -f1`
yamllint_files=`grep -oE './[^:]+\.yaml' /tmp/yamllint.out | sort | uniq`
kube_linter_files=`grep -oE './[^:]+\.yaml' /tmp/kube-linter.out | sort | uniq`
kubeval_files=`grep "ERR -" /tmp/kubeval.out | grep -oE '[^: ]+\.yaml' | sort | uniq`
files=`echo $kube_linter_files $kubeval_files $yamllint_files | sort | uniq | sed -e 's@/@%@g'`
files=`echo $kube_linter_files $kubeval_files $yamllint_files | sort | uniq | sed -e 's@^\\./@@g' | sed -e 's@/@%@g'`

if [[ $yamllint_exit != 0 || $kubelinter_exit != 0 || $kubeval_exit != 0 || $yamllint_count != 0 ]]; then
TERM=xterm bat --paging=never --color=always --style=numbers,grid --wrap=never $files
Expand Down

0 comments on commit 93eaecb

Please sign in to comment.