refactor: fix SELinux check to verify directory existence instead of file
All checks were successful
Nix Format Check / check-format (push) Successful in 37s

This commit is contained in:
Menno van Leeuwen 2025-01-22 15:42:46 +01:00
parent c1700f42dd
commit 766c90a5ba
Signed by: vleeuwenmenno
SSH Key Fingerprint: SHA256:OJFmjANpakwD3F2Rsws4GLtbdz1TJ5tkQF0RZmF0TRE

View File

@ -240,7 +240,7 @@ warning_prompt() {
check_selinux() {
# Check if distro has SELinux at all:
if [ ! -f /etc/selinux ]; then
if [ ! -d /etc/selinux ]; then
log_success "SELinux not found. Skipping..."
return 0
fi