summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Hahn <patricksilashahn@gmx.net>2016-11-01 20:04:48 +0100
committerPatrick Hahn <patricksilashahn@gmx.net>2016-11-01 20:04:48 +0100
commitb74547d39cc6c3b47d1154a46b41870522d3b4e7 (patch)
treed6780bbd3c8b4028e63231b34f1c04fad0bcfe53
parenta75be35e3865b3cdbebd3709cbcae02b3624e5d7 (diff)
downloadsnippets-b74547d39cc6c3b47d1154a46b41870522d3b4e7.tar.gz
snippets-b74547d39cc6c3b47d1154a46b41870522d3b4e7.tar.xz
snippets-b74547d39cc6c3b47d1154a46b41870522d3b4e7.zip
Removed unnecessary subshell which call
-rwxr-xr-xBash/iptables-whiteblacklisting.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/Bash/iptables-whiteblacklisting.sh b/Bash/iptables-whiteblacklisting.sh
index 6c13a4b..36f3c49 100755
--- a/Bash/iptables-whiteblacklisting.sh
+++ b/Bash/iptables-whiteblacklisting.sh
@@ -46,14 +46,14 @@ BLACKLISTING=()
#===============================================================================
# Define IPTables commands for IPv4 and IPv6
#===============================================================================
-IPTABLES_V4=$(which iptables)
-IPTABLES_V6=$(which ip6tables)
+IPTABLES_V4=iptables
+IPTABLES_V6=ip6tables
#===============================================================================
# Define IPTables-save commands for IPv4 and IPv6
#===============================================================================
-IPTABLES_SAVE_V4=$(which iptables-save)
-IPTABLES_SAVE_V6=$(which ip6tables-save)
+IPTABLES_SAVE_V4=iptables-save
+IPTABLES_SAVE_V6=ip6tables-save
#===============================================================================
# Wrapper function for IPTables with IPv4 and IPv6