Don't list undetected apps

This commit is contained in:
Bob Mottram 2016-10-01 14:31:18 +01:00
parent c81f5af6c6
commit 27368c9424
1 changed files with 21 additions and 15 deletions

View File

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