From 9632f1e1988ccdc0cc47b3f1c8fecfc4e3c29185 Mon Sep 17 00:00:00 2001 From: lifubang Date: Tue, 6 Jan 2026 10:02:03 +0000 Subject: [PATCH] integration: quote shell value to prevent word splitting Signed-off-by: lifubang --- tests/integration/capabilities.bats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/capabilities.bats b/tests/integration/capabilities.bats index af16dfc52..bbc14213f 100644 --- a/tests/integration/capabilities.bats +++ b/tests/integration/capabilities.bats @@ -31,7 +31,7 @@ function teardown() { } @test "runc run with new privileges" { - if [ $(awk '$1 == "NoNewPrivs:" { print $2; exit }' /proc/self/status) -ne 0 ]; then + if [ "$(awk '$1 == "NoNewPrivs:" { print $2; exit }' /proc/self/status)" -ne 0 ]; then skip "requires unset NoNewPrivs" fi update_config '.process.noNewPrivileges = false'