From f3ce14c3852a63af2ebc520c186dd1c529b1ffe3 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 29 Jan 2018 14:57:18 +0000 Subject: [PATCH] mobile format onion address --- src/freedombone-utils-onion | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/freedombone-utils-onion b/src/freedombone-utils-onion index c9cd0b39..0bd4953b 100755 --- a/src/freedombone-utils-onion +++ b/src/freedombone-utils-onion @@ -427,11 +427,11 @@ function get_app_onion_address { mobilestr="$2" if [ ${#mobilestr} -gt 0 ]; then - mobilestr="_${mobilestr}" + app_name="mobile${app_name}" fi - if grep -q "${app_name}${mobilestr} onion domain" $COMPLETION_FILE; then - if grep -q "${app_name}${mobilestr} onion domain" $COMPLETION_FILE; then - echo $(cat ${COMPLETION_FILE} | grep "${app_name}${mobilestr} onion domain" | head -n 1 | awk -F ':' '{print $2}') + if grep -q "${app_name} onion domain" $COMPLETION_FILE; then + if grep -q "${app_name} onion domain" $COMPLETION_FILE; then + echo $(cat ${COMPLETION_FILE} | grep "${app_name} onion domain" | head -n 1 | awk -F ':' '{print $2}') return fi fi