From f7c09e47afae141e877cfef7727603d73aa0d889 Mon Sep 17 00:00:00 2001
From: Pawel Krawczyk
Date: Thu, 2 Oct 2014 11:11:35 +0100
Subject: [PATCH] test for no binary
---
blacklist.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/blacklist.sh b/blacklist.sh
index ffb0f59..daaf4dd 100644
--- a/blacklist.sh
+++ b/blacklist.sh
@@ -13,13 +13,13 @@ urls="$urls https://www.blocklist.de/downloads/export-ips_all.txt"
blocklist_chain_name=blocklists
-if [ $(which ipset) ]; then
+if [ -z "$(which ipset)" ]; then
echo "Cannot find ipset"
echo "Run \"apt-get install ipset\" or \"yum install ipset\""
exit 1
fi
-if [ $(which curl) ]; then
+if [ -z "$(which curl)" ]; then
echo "Cannot find curl"
echo "Run \"apt-get install curl\" or \"yum install curl\""
exit 1