mobile format onion address

This commit is contained in:
Bob Mottram 2018-01-29 14:57:18 +00:00
parent 8a6154376b
commit f3ce14c385
1 changed files with 4 additions and 4 deletions

View File

@ -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