From: Lott, Christopher (cl778h) Date: Wed, 12 Jun 2019 18:00:04 +0000 (-0400) Subject: Add missing $ in shell command X-Git-Tag: v0.38.4~3 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F72%2F15872%2F1;p=releng%2Fglobal-jjb.git 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 --- 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