diff options
author | Eric Jallot <ejallot@gmail.com> | 2019-10-08 20:06:32 +0200 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2019-10-08 20:38:01 +0200 |
commit | d55bdfac89610474115fdc976d28d5f23b06c32e (patch) | |
tree | aef63249f434cf1e135c75a152a435f9e657910c /tests/shell/testcases/nft-f/0003rollback_jump_0 | |
parent | 1b585afb6f114050d21f0ac5daecdde298cf480f (diff) |
tests: shell: fix failed tests due to missing quotes
Add double quotes to protect newlines when using <<< redirection.
See also commit b878cb7d83855.
Signed-off-by: Eric Jallot <ejallot@gmail.com>
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'tests/shell/testcases/nft-f/0003rollback_jump_0')
-rwxr-xr-x | tests/shell/testcases/nft-f/0003rollback_jump_0 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/shell/testcases/nft-f/0003rollback_jump_0 b/tests/shell/testcases/nft-f/0003rollback_jump_0 index 294a234e..6fb6f4e8 100755 --- a/tests/shell/testcases/nft-f/0003rollback_jump_0 +++ b/tests/shell/testcases/nft-f/0003rollback_jump_0 @@ -27,13 +27,13 @@ table ip t2 { } }" -$NFT -f - <<< $GOOD_RULESET +$NFT -f - <<< "$GOOD_RULESET" if [ $? -ne 0 ] ; then echo "E: unable to load good ruleset" >&2 exit 1 fi -$NFT -f - <<< $BAD_RULESET 2>/dev/null +$NFT -f - <<< "$BAD_RULESET" 2>/dev/null if [ $? -eq 0 ] ; then echo "E: bogus ruleset loaded?" >&2 exit 1 |