projects
/
config
/
iptables.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c671fc
)
Makefile: ignore error command if nft is not found
author
Antonio Ospite <ao2@ao2.it>
Thu, 3 May 2018 08:57:48 +0000
(10:57 +0200)
committer
Antonio Ospite <ao2@ao2.it>
Thu, 3 May 2018 08:57:48 +0000
(10:57 +0200)
And while at it, since "command" was using the absolute path to cover
the case of /usr/sbin not being in PATH, we might as well use "test -x"
directly.
Makefile
patch
|
blob
|
history
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