projects
/
config
/
iptables.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Makefile: ignore error command if nft is not found
[config/iptables.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
1c26fe1
..
9436a66
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,7
+1,7
@@
all:
deploy-workstation:
-
command -v /usr/sbin/nft > /dev/null
&& sudo nft flush ruleset
+
-[ -x /usr/sbin/nft ]
&& sudo nft flush ruleset
sudo ./iptables-workstation.sh
sudo iptables-save > iptables
sudo ip6tables-save > ip6tables