From 62f4f96da413e1faf4daa6179afd5756ef3dd404 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Mon, 28 Aug 2017 11:45:48 -0400 Subject: [PATCH] fix: correct shellcheck error --- common-functions | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common-functions b/common-functions index d3adc7f..3c9f411 100755 --- a/common-functions +++ b/common-functions @@ -412,7 +412,8 @@ service_port_pause() { [[ ! -f "$PORT_FILE" ]] && return 0 fi - local CONTAINER_NAME=$(docker ps -f name=^/${EXPOSED_NAME}$ --format "{{.Names}}") + local GREP_NAME="^/${EXPOSED_NAME}$" + local CONTAINER_NAME="$(docker ps -f name="$GREP_NAME" --format "{{.Names}}")" if [[ -z "$CONTAINER_NAME" ]]; then if [[ "$LOG_FAIL" == "true" ]]; then dokku_log_info1 "Service $SERVICE unexposed"