Onion address formatting

This commit is contained in:
Bob Mottram 2018-03-18 14:47:10 +00:00
parent f30d7e82b1
commit b9777b049f
1 changed files with 10 additions and 2 deletions

View File

@ -284,11 +284,19 @@ function show_domains {
onion_address="-" onion_address="-"
fi 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 if grep -q "mobile${app_name} onion domain" "$COMPLETION_FILE"; then
onion_address=$(get_app_onion_address "${app_name}" "mobile") 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
fi fi
done done