diff options
author | Borislav Glozman <Borislav.Glozman@amdocs.com> | 2018-10-25 08:17:27 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-10-25 08:17:27 +0000 |
commit | d3c2c6f0ea3ed54800f4a6c8b17f87ec18bc3e95 (patch) | |
tree | 85f75b8ffce4bd5c37db4d618f0f5e98c59a6893 /kubernetes/helm | |
parent | adcb9ee33a8d2d158b3e05e9547f7c5a24d1f7a2 (diff) | |
parent | ae927a36d44881caff843c5942a92199f5d702b1 (diff) |
Merge "Deploy plugin fix"
Diffstat (limited to 'kubernetes/helm')
-rwxr-xr-x | kubernetes/helm/plugins/deploy/deploy.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/kubernetes/helm/plugins/deploy/deploy.sh b/kubernetes/helm/plugins/deploy/deploy.sh index 938c651a97..9195f161f6 100755 --- a/kubernetes/helm/plugins/deploy/deploy.sh +++ b/kubernetes/helm/plugins/deploy/deploy.sh @@ -55,8 +55,13 @@ generate_overrides() { else SUBCHART_DIR="$CACHE_SUBCHART_DIR/$(cut -d':' -f1 <<<"$START")" if [[ -d "$SUBCHART_DIR" ]]; then - cat $COMPUTED_OVERRIDES | sed -n '/^'"$START"'/,/^'"$END"'/p' \ - | sed '1d;$d' | cut -c3- > $SUBCHART_DIR/subchart-overrides.yaml + if [[ -z "$END" ]]; then + cat $COMPUTED_OVERRIDES | sed -n '/^'"$START"'/,/'"$END"'/p' \ + | sed '1d;$d' | cut -c3- > $SUBCHART_DIR/subchart-overrides.yaml + else + cat $COMPUTED_OVERRIDES | sed -n '/^'"$START"'/,/^'"$END"'/p' \ + | sed '1d;$d' | cut -c3- > $SUBCHART_DIR/subchart-overrides.yaml + fi fi fi done |