Exclude comments
This commit is contained in:
parent
b6bf112e77
commit
6e6f2a19b6
|
@ -752,12 +752,13 @@ function store_passwords {
|
|||
}
|
||||
|
||||
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'
|
||||
return
|
||||
fi
|
||||
clear
|
||||
grep "Bridge " /etc/tor/torrc
|
||||
echo "${bridges_list}"
|
||||
}
|
||||
|
||||
function add_tor_bridge {
|
||||
|
|
Loading…
Reference in New Issue