Corrigir códigos de saída do Family Shield
Alguns comandos do Family Shield retornam com código 1
em situações que não representam erros.
Por exemplo:
--help|-h)
echo "Usage: family-shield [OPTION]"
echo
echo " -h, --help display this help."
echo " -e, --enable enable Family Shield."
echo " -d, --disable disable Family Shield."
echo " -s, --status return Family Shield status (enabled or disabled)."
echo " -n, --network apply Family Shield changes on local network via le-lab"
exit 1
;;
e
if test $STATUS; then
if test $NETWORK; then
check_services
else
if [[ $(check_status) == 0 ]]; then
echo "Family Shield is enabled"
else
echo "Family Shield is disabled"
fi
fi
exit 1
fi