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

Don't list undetected apps

parent c81f5af6
No related branches found
No related tags found
No related merge requests found
......@@ -347,28 +347,34 @@ function show_domains {
else
if [[ ${app_name} == "mumble" ]]; then
app_name="VoIP"
fi
if [[ ${app_name} == "gnusocial" ]]; then
app_name="GNU Social"
fi
if [[ ${app_name} == "searx" ]]; then
app_name="Search engine"
else
if [[ ${app_name} == "gnusocial" ]]; then
app_name="GNU Social"
else
if [[ ${app_name} == "searx" ]]; then
app_name="Search engine"
else
app_name=''
fi
fi
fi
fi
fi
fi
if grep -q "${app_name} domain" $COMPLETION_FILE; then
icann_address=$(cat ${COMPLETION_FILE} | grep "${app_name} domain" | head -n 1 | awk -F ':' '{print $2}')
fi
if [ ${#app_name} -gt 0 ]; then
if grep -q "${app_name} domain" $COMPLETION_FILE; then
icann_address=$(cat ${COMPLETION_FILE} | grep "${app_name} domain" | head -n 1 | awk -F ':' '{print $2}')
fi
if grep -q "${app_name} onion domain" $COMPLETION_FILE; then
onion_address=$(cat ${COMPLETION_FILE} | grep "${app_name} onion domain" | head -n 1 | awk -F ':' '{print $2}')
fi
if grep -q "${app_name} onion domain" $COMPLETION_FILE; then
onion_address=$(cat ${COMPLETION_FILE} | grep "${app_name} onion domain" | head -n 1 | awk -F ':' '{print $2}')
fi
echo -n -e "$(pad_string ${app_name})"
echo -n -e "$(pad_string ${icann_address})"
echo "${onion_address}"
echo -n -e "$(pad_string "${app_name}")"
echo -n -e "$(pad_string "${icann_address}")"
echo "${onion_address}"
fi
done
if grep -q "RSS reader domain" $COMPLETION_FILE; then
......
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