mirror of
https://codeberg.org/1414codeforge/ubgpsuite.git
synced 2025-03-02 10:27:37 +01:00
[tools/bgpscanner] Fix -o quoting (and options quoting in case PRETEND=y)
This commit is contained in:
parent
705670d682
commit
39dac63d82
@ -321,11 +321,12 @@ exprcompile
|
|||||||
[ "$TGT" = bgpgrep ] && [ "$DUMPBYTEC" = yes ] && OPTS=$(append "$OPTS" --dump-bytecode)
|
[ "$TGT" = bgpgrep ] && [ "$DUMPBYTEC" = yes ] && OPTS=$(append "$OPTS" --dump-bytecode)
|
||||||
[ "$TGT" != bgpgrep ] && OPTS=-r
|
[ "$TGT" != bgpgrep ] && OPTS=-r
|
||||||
|
|
||||||
[ -n "$OUTREDIR" ] && OPTS=$(append "$OPTS" "-o $OUTREDIR")
|
[ -n "$OUTREDIR" ] && OPTS=$(append "$OPTS" "-o \"$OUTREDIR\"")
|
||||||
|
|
||||||
CMD="exec"
|
CMD="exec"
|
||||||
if [ -n "$PRETEND" ] && [ "$PRETEND" = 1 ] || [ "$PRETEND" = y ] || [ "$PRETEND" = yes ]; then
|
if [ -n "$PRETEND" ] && [ "$PRETEND" = 1 ] || [ "$PRETEND" = y ] || [ "$PRETEND" = yes ]; then
|
||||||
CMD="echo"
|
CMD="echo"
|
||||||
|
OPTS=$(quote "$OPTS")
|
||||||
EXPR=$(quote "$EXPR")
|
EXPR=$(quote "$EXPR")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user