nwfilter: use /bin/sh rather than requiring bash

* src/nwfilter/nwfilter_ebiptables_driver.c (CMD_EXEC): Fix syntax
error in previous patch.
Reported by Stefan Berger.
This commit is contained in:
Eric Blake 2010-11-16 07:53:32 -07:00
parent 61cdff653c
commit 61af79c141

View File

@ -61,7 +61,7 @@
#define CMD_DEF_PRE "cmd='" #define CMD_DEF_PRE "cmd='"
#define CMD_DEF_POST "'" #define CMD_DEF_POST "'"
#define CMD_DEF(X) CMD_DEF_PRE X CMD_DEF_POST #define CMD_DEF(X) CMD_DEF_PRE X CMD_DEF_POST
#define CMD_EXEC "eval res=\\$(\"${cmd}\")" CMD_SEPARATOR #define CMD_EXEC "eval res=\\$\\(\"${cmd}\"\\)" CMD_SEPARATOR
#define CMD_STOPONERR(X) \ #define CMD_STOPONERR(X) \
X ? "if [ $? -ne 0 ]; then" \ X ? "if [ $? -ne 0 ]; then" \
" echo \"Failure to execute command '${cmd}'.\";" \ " echo \"Failure to execute command '${cmd}'.\";" \