diff options
author | Thomas Lange <NerdmindDE@users.noreply.github.com> | 2016-11-01 20:07:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-01 20:07:12 +0100 |
commit | 3ceecc93b82c1f95a77abd843096e0bcef2a8938 (patch) | |
tree | d6780bbd3c8b4028e63231b34f1c04fad0bcfe53 /Bash | |
parent | a75be35e3865b3cdbebd3709cbcae02b3624e5d7 (diff) | |
parent | b74547d39cc6c3b47d1154a46b41870522d3b4e7 (diff) | |
download | snippets-3ceecc93b82c1f95a77abd843096e0bcef2a8938.tar.gz snippets-3ceecc93b82c1f95a77abd843096e0bcef2a8938.tar.xz snippets-3ceecc93b82c1f95a77abd843096e0bcef2a8938.zip |
Merge pull request #1 from patrick246/master
Removed unnecessary subshell which call
Diffstat (limited to 'Bash')
-rwxr-xr-x | Bash/iptables-whiteblacklisting.sh | 8 |
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 |