Fix load path

This commit is contained in:
Javier J. Salmeron Garcia
2019-10-02 18:23:35 +03:00
parent 26831f6789
commit fc833275b5
3 changed files with 21 additions and 13 deletions

View File

@@ -1,10 +1,13 @@
#!/bin/bash
. ../functions/libkubeval.sh
repo_path="$(git rev-parse --show-toplevel)"
current_branch="$(git rev-parse --abbrev-ref HEAD)"
origin_commit="$(git rev-parse --short "$(git merge-base master "$current_branch")")"
files_to_push="$(git diff --name-only "$origin_commit")"
# shellcheck source=../functions/libkubeval.sh
. "${repo_path}/functions/libkubeval.sh"
readonly current_branch="$(git rev-parse --abbrev-ref HEAD)"
readonly origin_commit="$(git rev-parse --short "$(git merge-base master "$current_branch")")"
readonly files_to_push="$(git diff --name-only "$origin_commit")"
failed=0
for chart_name in $( cut -d'/' -f1,2 <<< "$files_to_push" | uniq ); do