Skip to content

Commit 8c3afc6

Browse files
authored
queue always gets created
[ -n $VAL ] does not function without quotes [[ -n $VAL ]] and [ -n "$VAL" ] both work
1 parent 7dd5da8 commit 8c3afc6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

telegraf/rootfs/start-telegraf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22
set -e
33

4-
if [ -n $DEIS_NSQD_SERVICE_HOST ]; then
4+
if [ -n "$DEIS_NSQD_SERVICE_HOST" ]; then
55
echo "Creating topic with URL: http://$DEIS_NSQD_SERVICE_HOST:$DEIS_NSQD_SERVICE_PORT/topic/create?topic=$NSQ_CONSUMER_TOPIC"
66
curl -s -X POST http://$DEIS_NSQD_SERVICE_HOST:$DEIS_NSQD_SERVICE_PORT/topic/create?topic=$NSQ_CONSUMER_TOPIC
77
fi

0 commit comments

Comments
 (0)