SC2086: Double quote to prevent globbing and word splitting
This commit is contained in:
1 parent
6c66e9850c
commit
89c8e1c6a5
1 file changed
+1
-1
@@ -211,7 +211,7 @@ get_running_image_tag() {
|
|||||||
verify_app_name "$APP"
|
verify_app_name "$APP"
|
||||||
|
|
||||||
local CIDS=( $(get_app_container_ids "$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"
|
echo "$RUNNING_IMAGE_TAG"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user