From ba69e9fe10bae59062cc950823dda6d1e6ee67d3 Mon Sep 17 00:00:00 2001
From: Bob Mottram <bob@freedombone.net>
Date: Sun, 11 Jun 2017 13:09:12 +0100
Subject: [PATCH] Return values

---
 src/freedombone-utils-onion | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/freedombone-utils-onion b/src/freedombone-utils-onion
index 065419744..3261289f3 100755
--- a/src/freedombone-utils-onion
+++ b/src/freedombone-utils-onion
@@ -54,9 +54,9 @@ function onion_service_exists {
     onion_service_name="$1"
 
     if [ -f /var/lib/tor/hidden_service_${onion_service_name}/hostname ]; then
-        echo "1"
+        echo -n "1"
     else
-        echo "0"
+        echo -n "0"
     fi
 }
 
-- 
GitLab