From 89c8e1c6a58d0a52efe0e801d88596a0b26c17d6 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 26 Mar 2017 05:02:03 -0600 Subject: [PATCH] SC2086: Double quote to prevent globbing and word splitting --- plugins/common/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/common/functions b/plugins/common/functions index 30475ba6f..476499952 100755 --- a/plugins/common/functions +++ b/plugins/common/functions @@ -211,7 +211,7 @@ get_running_image_tag() { verify_app_name "$APP" local CIDS=( $(get_app_container_ids "$APP") ) - local RUNNING_IMAGE_TAG=$(docker inspect -f '{{ .Config.Image }}' ${CIDS[0]} 2>/dev/null | awk -F: '{ print $2 }' || echo '') + local RUNNING_IMAGE_TAG=$(docker inspect -f '{{ .Config.Image }}' "${CIDS[0]}" 2>/dev/null | awk -F: '{ print $2 }' || echo '') echo "$RUNNING_IMAGE_TAG" }