From c39a78a2527e40fbf2d46204ea70468c96dd1c05 Mon Sep 17 00:00:00 2001 From: "Lott, Christopher (cl778h)" Date: Wed, 12 Jun 2019 14:00:04 -0400 Subject: [PATCH] Add missing $ in shell command Add missing $ to variable tag_file so the yq query can pull the tag from the container-tag.yaml file. Signed-off-by: Lott, Christopher (cl778h) Change-Id: If1d99fca46f2a0cc6ea8328d7ed1b1495c7af116 --- .../notes/repair-container-tag-file-path-965c8b9ab644b220.yaml | 5 +++++ shell/docker-get-container-tag.sh | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/repair-container-tag-file-path-965c8b9ab644b220.yaml diff --git a/releasenotes/notes/repair-container-tag-file-path-965c8b9ab644b220.yaml b/releasenotes/notes/repair-container-tag-file-path-965c8b9ab644b220.yaml new file mode 100644 index 00000000..de8fec41 --- /dev/null +++ b/releasenotes/notes/repair-container-tag-file-path-965c8b9ab644b220.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Add missing $ to variable tag_file so the yq query can pull + the tag from the container-tag.yaml file. diff --git a/shell/docker-get-container-tag.sh b/shell/docker-get-container-tag.sh index e522e220..e8019403 100644 --- a/shell/docker-get-container-tag.sh +++ b/shell/docker-get-container-tag.sh @@ -25,7 +25,7 @@ elif [[ $CONTAINER_TAG_METHOD == "yaml-file" ]]; then dir=${CONTAINER_TAG_YAML_DIR:-$DOCKER_ROOT} tag_file=$dir/container-tag.yaml if [[ -f $tag_file ]]; then - tag=$(yq -r .tag tag_file) + tag=$(yq -r .tag "$tag_file") else echo "File $tag_file not found." fi -- 2.16.6