aboutsummaryrefslogtreecommitdiff
path: root/cli-tests/t_v1_policy.sh
diff options
context:
space:
mode:
Diffstat (limited to 'cli-tests/t_v1_policy.sh')
-rwxr-xr-xcli-tests/t_v1_policy.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli-tests/t_v1_policy.sh b/cli-tests/t_v1_policy.sh
index e883dcd..46ccdaf 100755
--- a/cli-tests/t_v1_policy.sh
+++ b/cli-tests/t_v1_policy.sh
@@ -13,7 +13,7 @@ mkdir "$dir"
chown "$TEST_USER" "$dir"
_print_header "Set policy_version 1"
-sed -i 's/"policy_version": "2"/"policy_version": "1"/' "$FSCRYPT_CONF"
+sed -E -i 's/"policy_version": +"2"/"policy_version": "1"/' "$FSCRYPT_CONF"
_print_header "Try to encrypt as root"
_expect_failure "echo hunter2 | fscrypt encrypt --quiet --name=prot '$dir'"