From c68ac3be25b99dc2081a4ac218b8c0722ba6ae7d Mon Sep 17 00:00:00 2001 From: Matt Colyer Date: Mon, 2 Nov 2015 21:23:58 -0800 Subject: [PATCH] Fix lint failures Also correct ; to be the proper delimiter. --- commands | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands b/commands index 230d7bd..fb0a722 100755 --- a/commands +++ b/commands @@ -31,8 +31,8 @@ case "$1" in touch "$LINKS_FILE" dokku_log_info1 "Starting container" - if [ -n $POSTGRES_DOCKER_ARGS ]; then - echo "$(echo $POSTGRES_DOCKER_ARGS | tr ',' "\n")" > "$SERVICE_ROOT/ENVIRONMENT" + if [[ -n $POSTGRES_DOCKER_ARGS ]]; then + echo "$POSTGRES_DOCKER_ARGS" | tr ';' "\n" > "$SERVICE_ROOT/ENVIRONMENT" else echo "" > "$SERVICE_ROOT/ENVIRONMENT" fi