Exclude comments

This commit is contained in:
Bob Mottram 2016-12-21 16:56:27 +00:00
parent b6bf112e77
commit 6e6f2a19b6
1 changed files with 3 additions and 2 deletions

View File

@ -752,12 +752,13 @@ function store_passwords {
} }
function show_tor_bridges { function show_tor_bridges {
if ! grep "Bridge " /etc/tor/torrc; then bridges_list=$(grep "Bridge " /etc/tor/torrc | grep -v '##')
if [ ${#bridges_list} -eq 0 ]; then
echo $'No Tor bridges have been added' echo $'No Tor bridges have been added'
return return
fi fi
clear clear
grep "Bridge " /etc/tor/torrc echo "${bridges_list}"
} }
function add_tor_bridge { function add_tor_bridge {