diff options
author | Tim Schumacher <tim.schumacher1@huawei.com> | 2025-03-07 12:56:43 +0300 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2025-03-07 22:38:34 +0300 |
commit | 6ae0042f4d3f331e841495eb0a3d51598e593ec2 (patch) | |
tree | cdd38335c3cbf968f98b64087c5beb166c2a6d81 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 2c2b1e059792f610bae4fee8ed517b8ce9c585fb (diff) | |
download | linux-6ae0042f4d3f331e841495eb0a3d51598e593ec2.tar.xz |
selinux: Chain up tool resolving errors in install_policy.sh
Subshell evaluations are not exempt from errexit, so if a command is
not available, `which` will fail and exit the script as a whole.
This causes the helpful error messages to not be printed if they are
tacked on using a `$?` comparison.
Resolve the issue by using chains of logical operators, which are not
subject to the effects of errexit.
Fixes: e37c1877ba5b1 ("scripts/selinux: modernize mdp")
Signed-off-by: Tim Schumacher <tim.schumacher1@huawei.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions