selinux: Chain up tool resolving errors in install_policy.sh
[ Upstream commit 6ae0042f ] 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: e37c1877 ("scripts/selinux: modernize mdp") Signed-off-by:Tim Schumacher <tim.schumacher1@huawei.com> Signed-off-by:
Paul Moore <paul@paul-moore.com> Signed-off-by:
Sasha Levin <sashal@kernel.org>
Loading