Add missing $ in shell command 72/15872/1
authorLott, Christopher (cl778h) <cl778h@att.com>
Wed, 12 Jun 2019 18:00:04 +0000 (14:00 -0400)
committerLott, Christopher (cl778h) <cl778h@att.com>
Wed, 12 Jun 2019 18:00:04 +0000 (14:00 -0400)
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) <cl778h@att.com>
Change-Id: If1d99fca46f2a0cc6ea8328d7ed1b1495c7af116

releasenotes/notes/repair-container-tag-file-path-965c8b9ab644b220.yaml [new file with mode: 0644]
shell/docker-get-container-tag.sh

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 (file)
index 0000000..de8fec4
--- /dev/null
@@ -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.
index e522e22..e801940 100644 (file)
@@ -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