diff --git a/src/freedombone-utils-onion b/src/freedombone-utils-onion index aa6425fe..d91334cc 100755 --- a/src/freedombone-utils-onion +++ b/src/freedombone-utils-onion @@ -84,7 +84,7 @@ function remove_onion_service { fi fi fi - if [ $(onion_service_exists ${onion_service_name}) == "1" ]; then + if [[ $(onion_service_exists ${onion_service_name}) == "1" ]]; then shred -zu /var/lib/tor/hidden_service_${onion_service_name}/* rm -rf /var/lib/tor/hidden_service_${onion_service_name} fi