mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 02:51:16 +00:00
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:
parent
61cdff653c
commit
61af79c141
@ -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}'.\";" \
|
||||||
|
Loading…
Reference in New Issue
Block a user