From 79d74d0c272a1cfb3f2e73559a409965f62a46ab Mon Sep 17 00:00:00 2001 From: "Javier J. Salmeron Garcia" Date: Wed, 2 Oct 2019 19:12:58 +0300 Subject: [PATCH] Fix message display in libyamllint --- githooks/functions/libyamllint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/githooks/functions/libyamllint.sh b/githooks/functions/libyamllint.sh index 05dcc9bcb6..6cfd5b5c56 100644 --- a/githooks/functions/libyamllint.sh +++ b/githooks/functions/libyamllint.sh @@ -6,7 +6,7 @@ render_and_yaml_lint() { local -r values="${3:?missing_values}" local -r repo_path="$(git rev-parse --show-toplevel)" local -r display_chart_path=${chart_path#"$repo_path/"} - local -r display_values=${values#"$chart_path/"} + local -r display_values=${values#"$repo_path/"} local -r lint_rules="{extends: default, rules: {line-length: disable, trailing-spaces: disable, truthy: enable, document-start: disable, empty-lines: {max-end: 2} }}" printf '\033[0;34m- Running yamllint on %s/%s (values: %s)\n\033[0m' "$display_chart_path" "$path" "$display_values"