From 0e9f0fea1cf585bae8f70a0d74bfc906f9d99530 Mon Sep 17 00:00:00 2001 From: kexkey Date: Tue, 12 Nov 2019 16:59:49 -0500 Subject: [PATCH] Condition fix --- otsclient_docker/script/otsclient.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/otsclient_docker/script/otsclient.sh b/otsclient_docker/script/otsclient.sh index d6eb252..9a2a598 100644 --- a/otsclient_docker/script/otsclient.sh +++ b/otsclient_docker/script/otsclient.sh @@ -15,7 +15,7 @@ stamp() { local data local proxychains="" - if [ -n ${TOR_HOST} ]; then + if [ -n "${TOR_HOST}" ]; then proxychains="PROXYCHAINS_ONE_PROXY=\"socks5 `getent hosts ${TOR_HOST} | awk '{ print $1 }'` ${TOR_PORT}\" proxychains4" fi @@ -65,7 +65,7 @@ upgrade() { local returncode local proxychains="" - if [ -n ${TOR_HOST} ]; then + if [ -n "${TOR_HOST}" ]; then proxychains="PROXYCHAINS_ONE_PROXY=\"socks5 `getent hosts ${TOR_HOST} | awk '{ print $1 }'` ${TOR_PORT}\" proxychains4" fi @@ -119,7 +119,7 @@ verify() { local data local proxychains="" - if [ -n ${TOR_HOST} ]; then + if [ -n "${TOR_HOST}" ]; then proxychains="PROXYCHAINS_ONE_PROXY=\"socks5 `getent hosts ${TOR_HOST} | awk '{ print $1 }'` ${TOR_PORT}\" proxychains4" fi