Skip to content
Snippets Groups Projects
Commit b9777b04 authored by Bob Mottram's avatar Bob Mottram
Browse files

Onion address formatting

parent f30d7e82
No related branches found
No related tags found
No related merge requests found
......@@ -284,11 +284,19 @@ function show_domains {
onion_address="-"
fi
W+=("${app_name}" "${icann_address} / ${onion_address}")
if [[ "${icann_address}" != '-' ]]; then
W+=("${app_name}" "${icann_address} / ${onion_address}")
else
W+=("${app_name}" "${onion_address}")
fi
if grep -q "mobile${app_name} onion domain" "$COMPLETION_FILE"; then
onion_address=$(get_app_onion_address "${app_name}" "mobile")
W+=("${app_name} (mobile)" "${icann_address} / ${onion_address}")
if [[ "${icann_address}" != '-' ]]; then
W+=("${app_name} (mobile)" "${icann_address} / ${onion_address}")
else
W+=("${app_name} (mobile)" "${onion_address}")
fi
fi
fi
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment